Fix a bunch of annotation issues and bugs

Hello @nicks, @giannic, @sugunasubra, 

Please review the following commits I made in branch 'xiao-fix-bunch'.

9991e536dc6d9753e007f6fa6b2fe47ad67504e9 (2014-03-25 22:13:11 -0700)
Fix a bunch of annotation issues and bugs
They are found by a partial Closure Compilter scan and jshint scan.

R=@nicks
R=@giannic
R=@sugunasubra