Store history in localStorage
History storage tests
Limit history size in localStorage
Fail gracefully when localStorage is not available
Merge pull request #195 from rcchan/localstorage

Fixes #180