Don't Use Global Sketch Vars

fixes #6 

Also move away from `doc` and `selection` global vars in favor of `sketch.doc` and `sketch.selection`

See http://mail.sketchplugins.com/pipermail/dev_sketchplugins.com/2014-May/000339.html