Refactoring WebhooksController and its specs

In WebhooksController: decomposed the long method into some more readable smaller ones.

In webhooks_controller_specs: extracted some of the repetitive stuff to a helper method / let variables, and changed the (deprecated) `should` stuff to use RSpec's new `expect()` syntax.