Update sidebar to return users to main doc page or home page

Also fix incorrect sidebar nav for errors, rest api and command line
topics.

Change-Id: Ie06524b19913bbaedeeb337d1df9143c2626580e
88 files changed