splitting out resources from main app file and using rackup to start server