Make jshint warn on unused variables.

Also remove a whole ton of them.
Merge remote-tracking branch 'origin/master' into unused
Merge pull request #454 from NICTA/unused

Make jshint warn on unused variables.
Merge remote-tracking branch 'origin/master' into ogrViewModel