Added override-able pre- and post-processing hooks to WebResource