Correct implementation and description of API

Allow for type and encoding specification of the message body and better
describe the integration with custom form fields.
Properly transcode message body in API requests