Allow interpreting a sent request as text and json

This will make it much easier to do matching on last_request and when
doing callbacks.

Change-Id: I705f28b925afdf92c417433375d0f99d36071a6b
Closes-Bug: #1361462
Merge "Allow interpreting a sent request as text and json"