Use scoped_ptr for private data in FrontendNet. Allow threads to be set