Generalize validation; move to utilities

Move the validation code ('validate') to the utilities.js mixin.

Migrate events over to use the common validate function.

Add validation to the new project form.