First version that truly communicates.

Mosh exits after getting the initial frame; not sure why.
Also, this includes some style cleanup.