Extract methods for creating and parsing payment requests, payment messages and payment acks, as well as Ack data class. Add unit tests for roundtripping payment messages and payment acks.