Support raw data URI
Correct handling of timeouts. Improved error messages