Fixed a bug where POST doesn't return new id

The restclient was following redirects on the POST where the new id was
set by magento in the location header.