refactor geojsonify

refactor `geojsonify` to be in it's own module; add unit tests