Merge pull request #3352 from kgaillot/best-practices
Move some internal scheduler APIs to libcrmcommon