Patched a LOT of things so that our app works with Heroku hosting.