Fix non heroku deploy

Currently, deploying on *nix rather than Heroku is broken, because the code relies on various environment variables not mentioned in the `.settings.example` file. This pull request brings the two approaches inline with each other, I think (though not tested on Heroku).

Also fixes README. Might want to cherry-pick that commit if you don't want to merge the whole thing yet.