Replace message interaction through console.log with page.evaluate() and...

... reading from window.properties in the Sandbox instead.

as per request, to contribute to a fix for the "ugly hack"; not that this doesn't improve the functionality, it is just a cleaner interaction.

Basically: exploit the fact that page.evaluate() itself can return data from the sandbox.