Add documentation for generic helpers.
filepath: Rewrite many docstrings for Sphinx.

Not perfect by any means, but a lot better than it had been. Still gotta fix
up the first-/third-person verbs and pronouns.
zippath: Fix up docstrings.
generic: Fix up docstrings.