put all man pages into manpages/

Make sure there are both HTML and TXT versions of every man page and the
files are in manpages/ and named as consistently as possible. Keep two
symlinks in wwwroot for compatibility. Rewrite a mistaken regexp in
regen_manpages.sh to fix HTML change detection.