Extract methods for creating and parsing payment requests, payment messages and payment acks. Add unit tests for roundtripping payment messages and payment acks.