mod_pep: split objects and functions to a library.
mod_pep: fix syntax errors in previous commit.
pep_aux.lib: add missing export.
pep_aux.lib: add missing dm.path_encode import.
pep_aux.lib: fix typo.
pep_aux.lib: add missing util.stanza import.
pep_aux.lib: fix set_closures() parameters.