Refactored inflight support in Client to support storing them on disconnection.
Added support for storing inflight packets for client.