Refactored queue XML parser & writer. For #26.
XML utilities refactoring according to Saint Sonar.

Fixes #26