x11rdp: start refactoring to make use of winpr streams