Rewrite magit pull

Fixes #557.