Add support to send output to collect endpoints

Sorry thats just my terrible description for the post body ;)

Basically the body would have two params: type and payload. Payload would be the data that was captured, and type would be what we were putting in the URL before.