Adding debug configuration to cli bash script

Signed-off-by: Imesh Gunaratne <imesh@apache.org>
Refining error messages in cloud controller

Signed-off-by: Imesh Gunaratne <imesh@apache.org>