wfreerdp: clean separation of client core and controlling code