Move window code to its own file

Also rendering revamp

Also fmt
Add RendererFlags
Add RendererInfo and make Renderer public again