Create savehtml event.

This event, when executed, saves the current web page in the same manner as
during an error, warning, or exception when the appropriate --savehtml flag
has been specified.  This is primarily intended for debugging purposes.

Testing done:

Ran a script with <savehtml/>