Fix bug with fields not being omitted despite explicitly declared so
Added options for relationships
Added registerRoutes method