Move call to addCredentials from the cURL Wrapper to RestClient; misc. bug fixes in RestClient and content type