Add libfetch, and change gitfetch to use it