Removed legacy code referring directly to localStorage
Added possibility to configure which storage implementation to use