Bug 1033402 - waitForSocket() before connecting to marionette.

`debug` is a function to which you're supposed to pass a topic for your logs... see https://github.com/visionmedia/debug