Changed to using byte offsets, rather than a struct for the CONNECT packet
Implemented sending REGISTER and receiving REGACK