Added support for module loaders.
added umd wrapper
Added test page for integration with RequireJS
Fixed CommonJS support.
Simplified/fixed AMD support.