Adding Event and Webhook resources

This pull adds code and tests for the event and webhook api endpoints.