Refactored app to use express.