fixes for filenames in xml documents
adding tests
Merge pull request #180 from simboss/stable-namefixes

Ability to create meaningful names for capabilities files