Process comments and fix sidebar table of comments

* Fixed $(ready) thing
* Removed console.log statements
* Simplified conditional branch as requested
* Moved constants to top of module
* Simplified event handler by moving up to sagan-level container
* Changed reveal(cls) to tap hideBuildSteps() for removing CSS ops
* Altered generation of sidebar content, so it finds any links associated with .reveal-foo, and trims them out of the sidebar.
* Move docCookie into separate module