Added UMD style initialization

Makes it possible to cleanly load the library with AMD, Node and in the browser. Fixes #13.