Progress on refactoring of keybase packets.

Work on #48