ModelValidation: helper trait for custom bean validation
AppsResource: all methods should be able to produce json for error messages
AppsResource: add bean validation
GroupsResource: add bean validation