Check index files against dir listing before stat.

This can improve performance a whole lot if the underlying filesystem
is slow.
Check banish list before looking up userinfo.

This can improve performance quite a bit if the underlying user DB is slow,
typically with .htaccess lookups. Also added some defaults mentioned in
[Bug 5956].