added client and nameserver source files. added header files which contain shared functions for source files.