heroku-like configuration handling for dokku

refs #55
superscedes #188