channels/server: start refactoring to fully match WTSApi