XCOMMONS-426: Provide a generic XML parser/serializer for filters
* a bit of cleanup
* add tests