Now server responses to constrain request by xml representation of
ApplicationConstrain class.
Moved ApplicationConstrain to shared module.