First effort

This extracts and refactors the grid notation concerns out of https://github.com/guideguide/core and adds tests.