Extract UIDs from a public key and figure out which one is primary

This is remarkably challenging.

Progress on keybase/keybase#198
changes
Merge branch 'master' of github.com:keybase/kbpgp

Conflicts:
	CHANGELOG.md