Add cn_loaded action for plugins to hook into.

Closes gh-252
Add cn_register_template to allow plugins to register templates.
Remove the action that registered the Names template in the plugin init method.
Add the action required to register the Names template in the template file.