[libcommhistory] Add a private class for ContactListener

This allows the use of contactlistener.h without seaside. I'll to remove the places where qtcontacts-extensions and QContact are exposed in headers in a subsequent change, after commhistory-daemon is updated.