Changed socket recv and send to work with libzmq from git.
Merge branch 'dev'