Add an example of onresponse hooks

Also fix the guide entry on hooks.