added req/rep broker using ROUTER/DEALER

also made a little code refactor