[libcommhistory] API for removing stale filesystem entries

1. Exported UpdatesEmitter
2. Added CommHistoryDatabasePath::dataDir()
3. Added DatabaseIO::eventExists(int)

commhistoryd needs those in order to delete unused files from the
filesystem (MMS attachments and vcards received via SMS)