working version. Adds RESTful functional messaging. Adds broadcasts. Works nicely