works with RB 1.7 api

This update works with the new RB api introduced in 1.6. Note that it requires a change (currently being pushed upstream) to the perl module libwww which had a bug where it cut off content headers in PUT.