Enh: added localStorage support (alpha)