Added payload type with GetPayloadBytes-method.
Errors are now returned.
Multipart form encoding should be sorted now.