getting rid of that unfortunate '//' in generated URLs

- change in URL ‘/PMS(server)’ made rework of flattenSeason necessary
- plus some other (more or less) cosmetic changes - in the end more new
code than expected - it should run fine, though :-)