binding controller to view now works
changed the API a bit, each view has a controller which holds the name of the controller to be attached to and  which holds the controller object
Added constructors for the objects so that they can be instantiated using JS