Bring back Hook class, with unit tests and some added methods
new API for Hook, it is now PubSub
rename "callbacks" method to "subscriptions"
remove priority feature from PubSub