Updated webhook processing to be compatible with Django 1.6.

This is a fix for issue #30.

It is backwords compatible with Django < 1.4.