The main Keymaster class has become somewhat unwieldy at well over 3000 LOC. We should figure out a way to split out feature sets like wallet, auth, credentials, dmail, polls, etc into separate files. It would be nice to make it extensible so a 3rd party could add a new feature set to Keymaster somehow.