Ability to register hooks from plugins - Fix #188