Dispatch correct event parser by sniffing content

This is a hack to see us through the deployment of the change from
query-encoded event objects to percent-encoded JSON. Let's merge this
unless there's something serious wrong with it. I will clean it up after
the deployment tonight.

Change-Id: Ica687893abe015b73a78e06a52f976142d74f7d4