Fix running CMS not installed without a configuration in /usr/local/etc.
Sane error message if CMS cannot connect to the database.
Fixed unit test for LogService.