Fixes to make it run on Sublime Text 3.

Fixes issue #28 and another problem (with edits) that showed up once
the plugin got past the import section.

In general, relative imports are discouraged so appended the local
path to sys.path. Also moved the insert code into a separate
TextCommand (required by ST3, due to handling of edits).