Migrate genericDoWrite to EngineM.
Migrate HasRead/DoRead, and HasWrite to EngineM.
Migrate genericClose to EngineM.
Migrate genericOpenSocket to EngineM.

Changes to openSocketHandle include making EngineM parameter independent
of WireDesc.