Adding messageposted broadcast event and fixing double submit bug

Adding messageposted broadcast event, and fixing this bug: https://github.com/mozilla-appmaker/appmaker/issues/1053

One todo I had for this component that I did not get to is adding a way to throttle the number of posts. It's pretty easy to accidentally spam a huge number of posts to the chatroom.