convert hotkey_action switch to a dict

this will permit plugins to register hockey actions.
move global hotkey_actions var to the top
Merge pull request #93 from phmongeau/plugin_hotkeys

Make it possible for plugins to add hotkey actions