Minor adjustments on model db diff process.

Created the method Constraint::isCodeDiffersFrom in order to correctly
generate the xml code and compare with another object.

Created the method PgModelerNS::formatString in order to avoid
repetively replace char by html tags.

Minor changes on ModelValidationHelper, ModelValidationWidget and
ModelDatabaseDiffForm