Refactored the github webhook handler.

Removed some old cruft.