Add precompiled assets for Heroku
Refactored to support Postgre database.