Fix versioning problems and make deployable to Heroku