Renamed MainWindow to RenderContext and cleaned up rendering of FactoryObjects

Change-Id: I14eb909aab66d0c007b43845bf47e037e33c3d3d