Merge pull request #182 from amtep/master

[performance] in queryContacts, only load wanted details
[debug] more logging