Port app (roughly) to Meteor 1.0