TerminalEmulator replies to 5250 QUERY

Start implementation of handling a 5250 QUERY command. At the moment
the response is still missing several fields.