Moved the notifications

Moved the calls to respecEvents.pub into the toString and toXML
methods so that they get called even in the event of a browser that
supports direct downloading.