Added basic functinoality for localstorage repository