Add JsonPointer, plus tests

Misses some functionality from the version used in -validator, but they will be
easy to add.