POST /events now also accepts json