Add missing import of os.

Missed an import of os in pmort.parameters.  Adding it now.
Translate all modules to new format.

This is a major rewrite of nearly all of the application into simpler
more clear modules.