History now stored in tree format and links work

Back button navigaion now stored in tree format, basic vieiwing is
possible, however, a bug when padding the rows appears on more complex
navigation.

Also, links will now change the tab to the selected page, and back
history is not altered, as expected.