Adds no-undeclared-globals rule, for JSHint/JSLint compatibility.

References to a global will be flagged:
```js
foo = 1;   // 'foo' is not defined.
```
... unless it is explicitly mentioned in a /*global*/ block:
```js
/*global foo:true*/
foo = 1;
```