Fleshing out the communications system, added hooks for popup dialogs.