[libcommhistory] API for removing attachments from the filesystem

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)