stop polling when user closes tab, fixes #10. unique ids for messages to prevent dupes, fixes dioscouri/amritasingh-f3#409