Adds remote logging.

Sends log messages to the console in Safari or Chrome.