Improved handling of 404s and xml parsing errors

And implemented a test for some of this work.
Bumped the version to 0.0.3.