Reorganized Go code, added messaging/polling.