Added some jscomp_error flags & fixed errors.

TBR=neil.fraser@gmail.com
BUG=109

Review URL: https://codereview.appspot.com/7277046

git-svn-id: http://blockly.googlecode.com/svn/trunk@614 c400ca83-b69d-9dd7-9705-49c6b8615e23