Expose addtohomescreen as a AMD or CommonJS module

Fixes #133