Fixes CCI wait_for_transaction

Fixes wait_for_transaction to only block on transactions that pertain to the provisioning
or reloading of a CCI and not any of the child transactions such as setting up monitoring
or setting up VPN accounts, etc.
'
Cleaned up using lookup helper and cleaned up the logic
adds wait_for_ready() to CCI and updates CLI to use it
Adds more clarify on the pending flag
so english. much grammar. wow.
white space
Fix bug in wait_for_ready, add tests