Adds download parameter

Begins to address #13, for internal `root.marklogic.com` only so far. Also a handful of other clean-up, including much better handling of retries in initialization (`init`, detailed in #1).