Magic zmq

This branch is for refactoring matlab magic using ZMQ