Register Listeners When Plugin Loads

Please look at the second commit for details. It quite possibly may not work.

Also considering moving this outside the plugin thread, discuss in the chat later today.