some thoughts on refactoring keybase-client

so it can be used in more contexts...