Takes a Sails Model object (e.g. User) and a ValidationError object and translates it into a friendly object for sending via JSON to client-side frameworks.