make it a real rtree

- [ ] more tests
- [x] get tests working on travis
- [x] move non-tree stuff to own `repo