added labels to the log outputs. added message.Type to the read and write loop log output. added logging of unauthorized emit/subscribe
some more tests