renamed DataManager to Controller, moved relation fetching in QueryImpl to Controller.query
added a bunch of functions to Controller