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.
createRequest only needs a request object now. The pb encoded version of it is created automatically.