Sublime Text 3 compatibility

This PR adds compatibility for ST3, it still works with ST2.