Added ability to disable use of localStorage (closes #181)