Major Refactor

 - Moves controlling logic from index file to a separate class
 - Adds a template class
 - Refactor and bug fixes in the XmlSorter class
 - Moves HTML from the index file to a HTML template file
First attempt at removing the 'root' node from the sorted XML