Adds webhook functionality.

Refactors HTTP calls because urllib2