Support new on-disk format and back-compatible loading of old format (Issue #38)

This PR makes the following changes:
* save credentials in the new format described in issue #38
* load old-format credentials with an info message to re-run `credulous save` to update them
* load new-format credentials
* a few more tests
* break up some of the more unwieldy functions a bit more