proxy + credential caching goodness
Merge pull request #182 from unwin/develop+cachingfix+loggingfix

proxy + credential caching goodness