Upgrade plugin to Sublime Text 3. Also, iron out some rough edges:

* Use pipe communication to conform to how Popen() and pipes work.
* Run AppleScript directly instead of shell scripts.
* Handle errors.
* Run the subprocess in background so Sublime doesn't hang.
* Make the "set window" AppleScript logic use a nicer and less error-prone way of switching the current window.