Conditional required

Second try, still struggling with Git

Conditional required: allows the value for required to be a callback:
name : { type: String, required: function () { /* this is doc */ return true/false; } }