Remove the onrequest hook

It was redundant with middlewares. Allows us to save a few operations
for every incoming requests.