Validate with closure compiler, clean up code even more
Instead of creating new global for non-amd modules, check if exports object exists, tiny api change
gslint.conf and .jshintrc