Add rest.before and rest.after hooks.