Share the type for server configuration between the different implemenation

This makes it easier to write a module working with any kind of server implemenation -- means you can have a generic callback type.

This is quite useful for the new mirari.