added naught for null objects
added GithubEvent class
put logic for github events in pages helper and removed it from views and ws backend