A few additions for usability

* Handle (and cache) encrypted key files,
* Basic auth for http and https handles,
* Recursive resolving of config values.