Add an interface to return the current framebuffer.
Add a quick and dirty render preview.

Now it's actually semi useful already.
Warning fixes.