Middleware support for Meteor publish functions