Refactored controller to return object instead of function. Now other modules
don't require the controller to be passed as an argument. Also removed
extraneous functions (Loader, CanvasContainer) to their own modules to reduce
dependence on controller in other views.