Pass current engine state into OnRender function

I'm using this for plugging in my custom renderer for rendering animated water surfaces and billboard forests. 
With some hacking it should also pave the way for integrating other 3rd party WebGL libs like three.js or spiderGL. Although some passing of the GL context, mvp matrices and camera vectors must be done.