Added the capability to validate entities before saving them.  Added the plumbing for server-side unit tests. Added a unit test for the validation results class.