[r=dimitern],[bug=1221134] various: production code and logging improvements
Fixed 4 slightly annoying, unrelated minor issues: 1. Refactored production code not to depend on gocheck (manual provider and apiserver/charms). As a drive-by fix, I refactored environs/manual tests to be proper black-box unit tests, rather than white-box tests in the manual package. 2. Fixed and improved tools download output via curl and better handling of errors. 3. Added debug logging to environs sshstorage and httpstorage, and the manual provider. 4. Reformatted and unified generated boilerplate config across all providers, fixing bug #1221134 in the process (-e env not properly explained).
Changes tested live with a manual and local environs with added manually provisioned machines.
While testing I found out and filed this bug #1291292 (basically manual bootstrap is broken with ssl-hostname- verification set to false, but this is due to a deeper issue).
I tried to unify and fix when all commands report "environment not bootstrapped", consistently across providers, but it turned out like more work than I originally thought, so I'll do a follow-up on that (which will entail dropping support for 1.14 environments without a .jenv file).