cloudstack_ruby_client restructured

Changes:
1. Use a meta method to generate the api command for client
2. Move out the response parsing block to meta method for generating appropriate error message
3. Slightly modify the unit test to be more structured