Fix docstrings of `edit-server-log-buffer-name'.

It's not a template, since it's used with `get-buffer-create'.
Style fixes.

Two misindented line, one use of ";" that should be ";;", a couple of
`if's that are better written as `when's, missing space, typo, avoid
calling `get-buffer' with "".
Fix header searching.

Remove two CR characters that are not needed (since the regexp string
already has a "\r"), and also remove the strange "?" from the regexp (my
best guess is that this is a mistake due to some earlier attemt that
used the popular "\r?" pattern).