code/history: Fix some bugs while showing author.

In a commit,
* Show only author's name if there is no user matches the name and
  author's email is not specified.
* Show anonymous as its author if both of author's email address and
  name is not specified.