cli/client: refactor client main loop
cli/client: refactor client main loop

Move inventory reporting into InventoryReporter class. Refactor main loop to
support client re-authentication.

Signed-off-by: Maciej Borzecki <f609d9f713abcd5f8f0e51f08dc151638a7681e7@rndity.com>

bboozzoo/mender-backend-cli