Removed throw on error, as the error should bubble up to the callback.
Added environment variable to deal with self signed certificates.
Added check for null response.
Implemented create, update and delete for roles.