Updated client to use state instead of flag.
Changed state to status
Updated client to use status.
Changed all connected flag in specs to status.
Updated commands to use status.