Allow listening to domain consoles

These commits are aiming at mapping the necessary API to listen on stream and file changes to attache the console of a container.

The stream callback test is somewhat hacky, but we need to have a long running program writing data to stderr/stdout in the test container to have time to connect to the console and grab the events. And of course this all works with PR #35 to run the tests.
Should be undefined and destroyed later on, though I understand that with Docker it doesn't matter much