tsdb-set: use 64 bit counters, check for correct mem allocation
Free epoch_list after db is closed
Bug fixes, logic streamlining, added unit test for concurrent TSDB writing.
Merge branch 'master' of https://github.com/constcast/tsdb
Merge https://github.com/ol-kl/tsdb-api

Conflicts:
	tsdb_api.c