Fixed console message

Added debugging compile option SHOW_CONSOLE_MESSAGES. If defined at
compile time the plugin will print a message to the client console
before and after javascript:windowClosed() events.
Fixed a warning being printed to client console. (Unknown command:
closed_htmlpage)