Renamed all instances of outputPath to outputDir to be inline with new API method naming conventions.
Added function WriteTags to html.lua. Also refactored a lot of code.