Make sure that Wayland window can do debugging/trace

Some additional logging improvements, so we can send these things to
kernel trace marker, for instance.

Signed-off-by: Carsten Munk <carsten.munk@jollamobile.com>