Use the new validation mechanism for vulnerability/fragility functions

Now commonlib can read and validate directly a lot more input files. A lot of functionality has been moved
from the engine. See the ticket https://bugs.launchpad.net/oq-engine/+bug/1372817.
The tests are green: https://ci.openquake.org/job/zdevel_oq-commonlib/122/