Added Heroku support.
Fixed a few issues in base template.