Update plugin to be module, also add docs, tests, built files and javascript file.
Merge pull request #2 from Connorhd/master

compatibility with v2 plugins