Introduced the max_distance concept in the GeographicObjects class

This is needed by commonlib, to associate assets to the closest site. See https://bugs.launchpad.net/oq-hazardlib/+bug/1387606.
The tests are running here: https://ci.openquake.org/job/zdevel_oq-hazardlib/152