Start to cleanup and document maintainer.js.
More jsdoc and fixes for closure compiler.