Heroku support

Now we can deploy to heroku. I also added some docs and some config refactoring on this.