Extracted light code to a separate component.
Make things use the light component.
Also fix the scripts.
Merge branch 'light_component' into dev