Directory server code for Kirisurf.