xrdp-ng: refactor xrdpListener and xrdpProcess