Rename context root 'grids' to 'sage'; Refactor