A little bit more refactoring of the directory server functions.

Changed the socket_file to __socket_file to indicate that it should
only be access by directory.py