added list-repositories and list-directories commands

added cleanup code in cmd_add_repository

(0) -100 -30 -10 -2 +2 +10 +30 +100 +300 tip

mercurial