 * Fixed several bugs in link generation (index pages, redirects after save) which
   had been incorrect when svenweb was not mounted at the root of the URL space.

 * Refactoring and cleanup.

