[libcommhistory] Enable limiting for flat call model queries

It's easy to limit results for queries for call models which aren't
using tree mode, and limiting increases performance when the full
history isn't needed.
[libcommhistory] Add temporary limit property to call proxy model

(cherry picked from commit 7722935db7b7227dec5aceabebac2d6c83d39b98)
[resolver] Record elapsed time in ContactResolver

This helps with optimization work
Optimize localUidComparesPhoneNumbers function

Using QLatin1String saves us a lot of time in converting the string as
UTF8, and it's a simple function, so inlining makes sense.

(cherry picked from commit 3a0013041abf6ce72153292ba0c9950cb089c0fd)
[libcommhistory] Speed up ContactResolver by removing looping

- Canonicalize requested addresses so that they can be looked up in hashes
(using a canonicalization that matches what addressMatchesList used to do)

- Fill in all the resolved contacts when the events list is sent out,
instead of looping over all the events whenever something changes.

- Side effect: having lots of duplicate addresses in the events list
no longer slows down contactUpdated processing

(cherry picked from commit bd88ff8366498d7452c594affe91ed8ae0114c8e)