Give model parameters a proper get/set interface
Add FILTER and filter$

The are the interface and DB access functions respectively.
Surprisingly simple given the Postgres JSON support.
Simpler GIN indexing

This is a premature op (what isn't?) but the comments tell a good story
and it's pretty easy to revert...