3.7 wip - hooks

as requested a while ago (https://github.com/forkcms/forkcms/pull/496)