Start support of recording Xorg applications
(xorg apps) record on every event, add logs for troubleshooting

Before this modification, nothing was recorded if launched on "windowed"
applications. with this patch, an XEvent must be fired in order to
record a frame.
Also add some logMessage calls for troubleshooting.

Note: recording size is fixed, you may need to change it or make it
more dynamic (ask some Xorg nerd how to do this)
sum commits