move network code to AChatService, first (partial) import