Relocate RLogin header parsing

This should be done in RLoginConnection right after the connection is
established -- having it here meant it ran after the terminal type
detection, which meant it was broken like websocket connections were.