Python 2.7 link
Store history in localStorage
History storage tests
Limit history size in localStorage