Update code style. Update Gruntfile.

Updated grunt tasks, added uglify task to the Gruntfile. Updated code
style.