Remove trailing slash from xccheckout.
Add rudimentary record and payload parsing, with tests.