Reduced geosphere dependencies

Added pathDist, and removed unnecessary refs to midPoint