Pass the request, not the resource to on_pre_POST_<resource> callbacks

The resource was incorrectly being passed to on_pre_POST_<resource> callbacks. This PR fixes it to pass the request object instead.