Updated app for capistrano deployment