[libcommhistory] Use generic phone number functions

Use the phone number functions exported by qtcontacts-sqlite for
uniform number handling in related projects.