Faster return for wildmatch with trailing '*'.

If the pattern ends in '*' it's not necessary to call the wildmatch, because
this will match everything.
Store the used autocmd event bits (#100).

The bits of the used autocmd events are now stored in a variable to early
break out of the autocmd, if there is no autocmd defined for a particular
event.