Store history in localStorage
History storage tests
Limit history size in localStorage