refactor sitemap urls and index urls into models
take last modified granularity into account when comparing sitemap lastmod with the last modified header
move logic into models
Fix up whitespace
remove unnecessary conditionals