More work on the conversion/validation library.

This is not the end. I am going to add more tests and docstrings. See https://bugs.launchpad.net/oq-nrmllib/+bug/1235553