[GH-13] Add UMD wrapper

This makes polyglot compatible with AMD loaders (such as RequireJS).

A slightly modified version of this UMD wrapper is used:
https://github.com/umdjs/umd/blob/4a87e85450baf582005243f9e922566ef2fc533a/returnExports.js