some factorizing and documentation
Using heroku's config system for secret keys now...