Refactor scurvy components from cartography. Massive reorganization into single lib file for focus.