Toolkit for creating NBD servers