Add the rest of the functions for C2PAP.

Add all the other functions to the C2PAP submodule. Everything is superficially
tested and seems to work. The functions concerning jobs in error states have
not been implemented (they always return false), because there is no experience
yet with jobs in error states on LoadLeveler.