amd & browserify imgcache

This allows the ImgCache to be used with AMD/CommonJS module pattern.

with AMD:
````
define(function (require) {
   var ImgCache = require("imgcache");
});
````

with CommonJS, used by Browserify:
````
var cache = require("imgcache");
````