Functions for creating and restoring url-safe signed JSON objects.
Compatible with django/core/signing.py