merged mdbroker with stash
adds z_unwrap function; fixes message routing problems with the broker