OSL emission code, refactor #1.

Modified EDF interface to allow for OSL emission, instead of treating it as a special case 
to avoid creating a ShadingPoint (not so expensive in any case).

Move to anonymous namespace.