Adds before-/after- request methods.