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.
YAY! That was one pain point I had :)