Add constraint definition.

Based on the former repository feature_constraints_controller.
Merge pull request #1 from francois-keith/master

Add constraint definition.