Style: added gjslint rules and fixed style issues

Created tools/gjslint.sh that can be used to automatically check for
conformance with Google coding style.

Added semicolons to the end of all statements where it was missing.

Fixed spacing inconsistencies.

Added missing type info to JsDoc comments in ScriptManager.js

Removed commas at end of object literals.

Wrapped extra long lines.