iOS: Added TS Gateway support
Merge pull request #1240 from mfleisz/iostsg

iOS: Added TS Gateway support