Added nextHistoryEntry
Cleaned up HistoryDatabaseAdapter
Mark HistoryDatabaseAdapter as abstract
Use the next entry method in TfIdfNgramPredictionEngine
Merge branch 'nextHistoryEntry' into bridgeClientServer