Clean up libraries and APIs
Migrated from: https://tracker.clearos.com/view.php?id=21611
Reported by: Peter Baldwin
The Certificate Manager libraries and API need to be tidied up in order to improve:
- Imports from other CAs
- Cert consumption from other apps, e.g. Postfix, Cyrus.
Peter Baldwin had done a lot of work on this before stopping development. This has all been split into a feature branch in GitLab then backed out of the master branch.