Debugging writes

Writes showed that this takes two writes for the data to come through.
Thee is some problem here so I left a little bit of the test code in
Khaan.inl
Hack

This allows writes to happen immediately. This uses the raw socket to do
the write. I do no consider this to be a final solution.
Merge pull request #1 from mkawick/ExperimentWithWritingInAnEvent

Experiment with writing in an event