Small CodeHintManager cleanups

Clean up CodeHintManager.registerHintProvider() and add a couple unit tests for it.  Fix various docs glitches (mainly Closure syntax issues). Make capitalization of "Id" consistent (does _not_ change public API).