Better error reporting when displaying feeds.

And some other cleanups.