removed dependency on require.js although you can still use it as an AMD module. removed dependency on logging module, instead use console.log when `debug` is passed and truthy