Improved history, history associated bugfixes

added in full history functionality, with load links in the Library
history listing, and some bug fixes sourcing from the history additions.