refactor HTML5 localStorage stuff into own dedicated plugin