Re-factor as jQuery plugin

* Remove global vars
* Move shared methods on to prototype
* Add ability to close with Esc
* Add UMD
Merge pull request #3 from simonsmith/jquery-plugin-refactor

Re-factor as jQuery plugin