Moved sidebar tabs into header bar.

For #349.  Narrow view still needs a bit of work, and the header is
getting quite cramped, but it's good enough for now.