Add base.getPlugin
Add ability to setup hooks from plugins - Fix #192