--what-if-I-upgrade functionality

See https://bugs.launchpad.net/oq-engine/+bug/1362930 for an explanation. Tests are running here: https://ci.openquake.org/job/zdevel_oq-engine/628