History switching UI and external links

This brings the UI for the history switching more in line with the design.

Also introduces target=_blank to open external links in a new tab (per the suggestion of @jpyuda and @jehlers)