Added HOOK_PLUGINS_LOADED.

This fixes #482.