Can now deploy to Heroku

Bug fixes to be able to deploy apps to Heroku