libaudcore: add new logging infrastructure.

messages are pretty printed to the console and ui plugins can subscribe to log events (i.e. for a GUI-based event inspector)