Improve Sandbox LoggingResource and ensure all sandbox logging messages are routed through the logging resource.

Currently the Sandbox's LoggingResource suffers from a couple of weaknesses:

* It only supports logging at the INFO level.
* Errors generated on stdout are logged directly to Twisted, not via the LoggingResource.