Added light engine :bulb:

In this update I added basic light engine, still work in progress but
you can see it in action in JavaScript demo. Also, drastically increased
performance of scripting.