adding zero mq support and creating a portal daemon