Refactorings + added simple XML SAX-based parser for requests.