Function processRawEvent

(internal) Process data from the parser.

This private method rewrites headers as needed to work around some weirdnesses in the protocol; and assign unified event IDs to the Event Socket's Content-Types.