Add support for AMD and global exports.
Lint
Make sure watch gets reloaded on gruntfile change