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
Does this pattern look reasonable? The duplicated code at the end of the line feels suboptimal.