fixed usage of Meteor.userId for server enviroment + using grunt

Consider to merge these changes.