AbstractNodeService(net: MessagingService)
Abstract superclass for services that a node can host, which provides helper functions.