Use localStorage for payloads. Fixes #22.