Added %list-remotes command and some tests.