A simple API for localStorage