LDAPFilter small optimizations

- Now using generators, all() and any() instead of for loop and with
inner tests
- Using try-except KeyError instead of "if .. in .." in
LDAPCriteria.matches()
=> Small gain, but visible on large applications
Python 2.6 compatibility fixed

{key: value for ...} replaced by dict((key, value) for ...)