Merge pull request #3292 from kgaillot/best-practices
Improve scheduler logging and move related APIs to libcrmcommon