Risk maximum distance

Addresses https://bugs.launchpad.net/openquake/+bug/1095582

There are an additional issue: with this change, it has been necessary to modify some test fixtures (mainly the risk demos and the BCR qa tests).