separated controllers, routes and factories for auth and library tasks