Hook improvements

I have made some improvements to manage hooks in back office.
I have added functional tests for hooks : changing position, changing activation of hooks, modules and modules hooks.