Replace direct prints to stderr with DBGP in X11
Expose the window id via the Lua API

The drawable is not the actual window in case of double buffering, and
having the id makes interacting with or getting information about the
window with tools like xdotool or xwininfo a bit easier than having to
find the window via other criteria first.