Minor code cleanups

* Create new messages for JSON Reference related problems.
* Add a new SchemaLoader constructor when using an empty namespace.

Signed-off-by: Francis Galiegue <fgaliegue@gmail.com>