Cycles replacement node for the BI "Lamp Data" node
It is not currently possible to get the incoming light vectors for materials in Cycles with nodes. This would be a lot more complex than in BI, because of all the light bouncing around in the scene - I suspect(just a guess) this is the reason this data is not exposed via nodes. In Cycles it should only be possible to achieve these kinds of results with OSL that is not supported by GPU rendering so I don't know much about it. I suppose it would require a separate question as well if you were interested to pursue this further.