Avoid duplicate content in sitemaps.

Respect the STRIP_INDEXES option.

Resolves issue #836.
Document resolution to #836.
Test if path ends with index_file, not *is* index_file.
solved conflict