Changes to support running on Heroku easily.

If you won't want this, that's cool. I thought it might be handy if anyone wants to run on Heroku. Most of it's Heroku boilerplate, but I did also change it so that prior versions of an environment/name pair are deleted on deploy of a new environment/name pair.