Added decoding and encoding of Connack message type