Updated to conform with PSR-1/PSR-2
Created tests for the XmlParser
Refactored the classes

The primary purpose for this was to avoid xml methods polluting the html parser and vice versa
Added test for the HtmlParser class
Created tests for the XmlWriter class