Modified getUserEvents so that a check if the event is from a user is
done before checking whether the event is in exclude/include. This
should be slightly quicker.