Added listeners for accesDenied and accessDialogOpened events on publish...

Emitted events to allow the user to catch events regarding accessDenied and accessDialogOpened in the publisher object. This allows the user to bind custom error messages when these events occur, abstracting away the actual logic to the development code instead of having to modify the plugin code.