Set content-type for webhooks post request.

Also add missing call to db_session.commit() on stopping a webhook.