Add compatibility conversions for mobwrite

The new protocol is largely inspired by the original line-based
protocol, but has some improvements. This compatibility converter allows
people to convert from and back to the mobwrite protocol to ensure
compatiblity with standard mobwrite clients.