Fix some problems with Controller::_log attribute when database is disabled.
I have created two new Log classes, the first one is a simple log class to use syslog system call. The second one is a new class LogDb for log into database (extends Log).
Finally, the core/Controller class use Log class to avoid the use of database.