Refactor event listener, use decorator
Refactor code to bring sublime to front

ScriptingBridge is not bundled with ST3 and osascript works on both ST2
and ST3.
I'm not sure with ST3 name on Linux.
Keep reference to view and remove session from global list on close()
Simplify parse_input method
Refactor request handling and parsing of request