datastore: tests: refactor pb/transaction.

This makes it so protobuf request encoding/response decoding and transactional/non-transactional properties are all handled in one place.
:dancer: