Adds compatability for Sublime Text 3

Refactoring and porting for compatability with ST3.