Implement PINGREQ and PINGRESP

Also implement a thread for each GatewayConnection