Add 'on_update' event hook to PATCH requests

I needed a comfortable way to verify updates to items on basis of the current data, so I added an 'on_update' hook. What do you think about that?