A simple wrapper for the localStorage browser API.