Few API changes to make it easier to specify the server type

This is quite useful when you have a library which doesn't care about the kind of implementation you have chosen for you server (ie. unix-socket, unix-direct or xen).