Refactor, add Postgres and precompiled assets for Heroku