Support CommonJS and AMD style module loading

Now everybody can use it :-)