Fix action=info in client, split logic to own class, add tests

Change-Id: I8c0ab9c729b2c90479afb1083cbe01a80fb4e67c
Merge "Fix action=info in client, split logic to own class, add tests"