Fix some issues that popped up when running against HPCloud.

* Check that text/html is not actually xml.
* Always sleep and try again when rate-limited.
* Strip leading/trailing whitespaced from xml text.

Change-Id: Iddd7e40388a2a39e986fb519d3cbbf1ff9874c6f