The render system is now marked as dirty on window resize. Changed static methods to factory methods in the render system.

Marked as dirty means that all states are put to default and no render
targets are bound. This ensures that the new render targets are used
when needed.