Gateway: Parsing fix for Create Tunnel Response

This fix addresses a logon issue that may occur when a logon
message is present.
Gateway: Logoff crash fix

This addresses a race condition where the freerdp client
may crash on logoff.
Merge pull request #1550 from dbungert/gateway

Gateway: 2 Fixes