Basic support localstorage
Better momery measurement #18