added cache in history
little fixes
added batches for history dumping
added common history cache
little cache unloading fixes
added limits to some fields in commits table
Merge branch 'dbHistoryCache'