kvm_control coverage , added base_utils functions.

Hi guys,

I added the missing coverage for client/kvm_control and did a brief code re-factor. Also added some simple client/base_utils routines.