Main Meteor server code.