Allow REST Service Endpoint to work with chunked encoding (PLAT-562)

Allows a payload to be sent with the header and each chunk separately, and for the chunks to be encoded.  This is useful for when you want to "watch" something that has discrete events coming in with a long-running connection.