A simple authorisation system. Saves the store in JSON