Add github event handler

Note this just updates the head history table for now. I'll update it to actually display the history later.

@cpennington
And removed/updated the type declaration for `eventType`?