Implement remotes

This allows reading and writing of the remote name and url.

It does not yet allow changing the refspec.