[libcommhistory] API for removing stale filesystem entries

1. CommHistoryDatabasePath::dataDir()
2. DatabaseIO::eventExists(int)

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