rename Error to ErrorLogAndThrow
reformatting
requirejs used
removed withPromise
return default value
moved grunt.js and package.json to root directory