Add linewrite and cmdwrite methods to client.

They just call the network methods.