Add GLib logging support
Really basic support for the GLib logging facility, just does text messages.
Use the application logger object when available, but no harm in creating a local object if needed (no explicit need to always pass application around).