Source model XML writer

Needed for https://bugs.launchpad.net/openquake/+bug/1096867/, this branch adds the `SourceModelXMLWriter` class. This is the counterpart to the `SourceModelParser`.