[libcommhistory] Move commhistory data dir getter to its own header

To avoid dependency on QSqlDatabase
Merge pull request #96 from monich/CommHistoryDatabasePath

Move commhistory data dir getter to its own header