added index merging function
 * fixed log cursor leak
 * added batch-online index merge
added delete/merge locking (prevent file access)
added license terms