Reformat docs for Grid
Clean up tests setup
Security fix for deleting records

When a grid has a scope, it was possible to delete a record out of
scope, by substituting its ID. Fix that.