Grunt build, AMD and commonjs support

Merged pull request from ryanramage with added grunt build, package
description and AMD and commonjs support.