More fully-featured JSON repository.

Made the JsonBase into a JsonRepository, giving it standard CRUD
commands.