Add search url.

The search url for layers is a shim now.
It needs a real search view.
Refactored code.

Made a new JSONField class that understands values in a JSONField
in Django.