xrdp-ng: move module authentication code in separate file