Implement WGS84 earth model for distance calculations

Prepare #2809
Enable WGS84 distance calculations by default

Fixes #2809