Change the json encoding of exceptions. Hat tip github.
Update core functions.

- Add t() and sprintft().
- Remove timerStart() and timerStop().
Add schema validation classes.

- Add the Schema class to define data schemas and validate data against them.
- Add the Validation class to collect validation errors.
- Add the ValidationException class for exceptions that occur because of a failure to validate against a schema.