Validation errors

- Added an exported function for creating validation errors.
- Added methods on the ResError class for appending validation error descriptions.
- JSON serialization of error instance include validation error descriptions.
- Fixed linter warnings.
- Module has 100% test coverage.