Rewrite admin nav active menu item selection algorithm.
minor optimizations, and better documentation in admintheme nav creation stuff.