SQL docs tweaks.
Documentation tweaks.
Add JSON views for errors.
Add basic pytest configuration