Fixes #5044. Added getHooks() method to ElggPluginHookService and updated dev plugin to use it.