Store to and load from localStorage

Signed-off-by: Rohan Jain <crodjer@gmail.com>