ERP5Catalog: Trivial improvement on _searchAndActivate.
ERP5Catalog: Allow _searchAndActivate to use more from query result.

_searchAndActivate typically calls callMethodOnObjectList with paths as
parameter. The result is that each listed document is loaded, which may
not be required or desired.
select_method_id avoids this loading by calling method_id once per
packet_size with a list of values extracted from catalog result as (first)
argument.
ERP5Security: Ignore login leading- and trailing-whitespaces.

Real-world users may copy-paste logins without realising they also copy
whitespaces.