Corrected error in footer display for entries and comments selection.
Added loop protection in link replacement routine.
Corrected error in reconstruction of hash part of url.
Corrected loop when replacement string was empty of only contained a slash.
Some doc updates.