Implemented simple error handling behaviour

A KEYSTONE-ERROR condition will be signalled if the response code isn't
200 and the content type is application/json.  In all other cases the
url and the return code will be signalled as a standard error.

Change-Id: If68c3bf3fb8836e0c8510aed3329720da4e154e5