Code cleanup and unittested
Adding validation for xhtml
Cosmetic
Merge branch 'threading2' of github.com:andresriancho/w3af into threading2