fix logic in constraints#destroy & add error messages to json response
remove unused templates and directives. create directories in assets for different libraries