Httr

Moves from direct RCurl to httr, to improve error reporting.