[qtcontacts-sqlite] Match partial names in either direction

During aggregation, match contacts with partially matching first names
whether the partial match is from the new name to a fragment of an
existing name, or a fragment of the new name to an existing name.
[qtcontacts-sqlite] Fix promotion of gender details
[qtcontacts-sqlite] Query for gender correctly
Prefer explicit conversion from latin1
Merge pull request #64 from matthewvogt/partial-matches

Match partial names in either direction