Added an ObjectOutputStream on the client side.

A process hangs if you open an input stream without opening the
corresponding output stream:
http://stackoverflow.com/questions/9826267/cannot-get-objectinputstream-to-work