net: Move "net join" handling into a separate file.