A lightweight wrapper around the localStorage API