refactors site map

Second step of the site map refactoring started here: https://github.com/discourse/discourse/pull/1688 (and initially here: https://github.com/discourse/discourse/pull/1652).