Updated API and tests
Supported get clusters by querying deploy state
Fixed warning message "baseException.message deprecated in Python 2.6"
Add tests for modified API
Fixed one string concatenation bug
Change-Id: Ifec3854c286929b69bd689407b4ac409f520fac6