[libcommhistory] API for removing stale filesystem entries

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

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