Fixed a few issues. Deployment to Heroku seem to work now.