Start breaking out afproto code into its own module, created unit tests for new afproto module.