Implement a logger to log to error_log

This patch creates a logger that uses PHPs error_log to handle logging.
The reason for this is that it is easier for me to handle logs if I can just stream them from php-fpm stdout instead of having to handle a rotating logfile or having a syslogd running in the background.
This way, it offers a simple mechanism to anyone who'd want to handle logs themselves.