Fix lingering issues from #137

1) Allow mosh to support OSC sequences of the form ESC];foo^G, interpreting them the same as ESC]0;foo^G

2) Avoid changing the window title of the client if the title has never been set upstream.

(I made the changes you requested, osc_received is now title_initialized and I signed off the commits).