Make publish return a promise (i.e. pubit-as-promised).