rtree in front end working

Super cool.
We're going to need TypeScript to document the (currently implicit) data structure.