Make it possible for plugins to add hotkey actions

I converted the big switch statement for hotkey actions to a javascript object called `hotkey_actions`.

That way, plugins can add new actions using `hotkey_actions["action_name"] = function() { /* do stuff */ }`

If you want, I could also include an example plugin that would register a simple action a bind a key to it.