Change structure of app to add it to sinatra