Restore ``Folder`` pickle forward/backward compatibility with 3.12.0. Fixes #1

Adds the appropriate ``__getstate__`` and ``__setstate__`` methods to the Folder class to make the 4.0 version with its changed superclass pickle and unpickle just like the 3.12 version.