Converted to use Rest-Client gem.  Improved error messages