add support for deleting nodes & clients
clean up API a bit