Fix webhook tests when using node 0.10

Makes two updates to the webhook transport so that the webhook tests work with node 0.10.