The user-provided decor.detect(doc) should use the passed `doc`.
If capturing this won't be the same as `document`.
- Add `__selectedItem` to Tree so selectItem() can unselect previous item before selecting new one.
- Fix a few styles in the TOC
- Make the TOC drill-down to the current topic on page load
`.done()` is no longer part of the promise spec.