New event post method with payloads

All events are sent together in the same payload
No batchhing is done yet though

I don't know why it shows all this code in green background like I added it all