pygitweb,frontend: reorganize templates to ensure one base template per page, replacing janky preamble and postamble html