Fetch support.

This supersedes #203.

It looks mostly ready so I'm open to suggestions. It misses tests (again :-S) and documentation.
I agree with @tiennou, I usually try to return immutable copies if the signature says so.