libfreerdp-core: cleanup TS Gateway code