Moved render stuff to Renderer.

Yet zero testing, there are possible bugs. And needs serious polishing.