Implement EncodeThrift and DecodeThrift for test request and response

Not using reflection makes the allocation count reflect the RPC framework rather than serialization.