Add authorize and whoami commands.
Add manpages for authorize, repo and whoami commands.
Break up handling of errors.