[server] Virtual repo support.
Improve merge of virtual repos.

* Fix a memory leak.
* Print the number of visited dirs in merge.
Correct testing script seafile.sh.