Use svn update --depth=files

Instead of —depth=immediates
Store and detect remote repo URL

See #82