Added support for awaiting vms to be ready.
Refactored the compute client logic into a set of extension methods.