Use Closure Compiler checkVars flag

This commit uses --jscomp_error=checkVars on the compiler.jar command line. This is to be able to detect undeclared variables. To prevent the compiler to give error for the global "ol", "$" and "angular" variables, externs are used.
Merge pull request #347 from geoadmin/dev_checkvars

Use Closure Compiler checkVars flag