Split common/client/cache/authority parts of directory.c and dirserv.c