Added functional inverse
Heroku nonsense
Updated build files for heroku
adding logic for cleardb
url swap