Sublime Text 3 support

Tested working on both Sublime Text 2 and 3.