Display all statements in history from page load

This was a rather large code re-write again. still kinda buggy w/ the
prev-then-next-again stuff, but we can look at that in more detail later.