Add an option to send request and response as a single message

Fixes issue #3.