window: Remove transient_for_as_xid

It's unused, and it exposes an X11-specific property to API.
window: Make window_is_terminal private
stack: Flatten and simplify the default focus window logic
Start hacking out use of xtransient_for

It won't work under Wayland.