Encapsulated routes and resources for managing users in flatiron HTTP apps