client-side notification handling

implement ability for views to broadcast (to everyone or just
to a list of receivers) and listen to messages. also add a utility
method for attaching event handlers to dom elements from views.