Added error msg handling for the call results to the client. Refactored the response structure and the promises.  Updated the tests.
merge changes from specification compliance branch
0.1.0