added functionality to emit events only for the message's owner.
Added tests to test for private events emitte to the onwer of the document.