Plugin and hook system enhancements

As dataNotFound and loading plugins are using client hooks the plugins
should be defined for client only, and setup dummy plugins on the
server to avoid error’s if plugin is enable both on server and client
This function could use a refactor, just not sure how to prettify it the best way