Switched from tcp sockets to using pyzmq.

Soooo much easier.