Light js refactoring.
Starting to refactor history list code. Breaks it up into smaller functions.
Renames post-history to history.
More history refactoring.