Move functions destined for rzmq to their own file