Use a custom JSONEncoder to support frozenset and flask 0.10