Re-factor as jQuery plugin

Went through and converted to a plugin plus some extra tidy up. Have not touched the core logic as it's a bit tricky with no tests. Seems to work fine on Shopa though

* Remove global vars
* Move shared methods on to prototype
* Add ability to close with Esc
* Add UMD