Setting up usage in different environments

Global decache method in the browser.
module.exports for node.
define as 'decache' for AMS/requirejs.