first draft of "all history" feature

This needs work.  There is a lot of duplicate code around the history
directive that should be moved out of the 2 controllers.