add copy_db_to_head client operation
test copy_db_to_head
Merge branch 'incubaid-copydb-to-head' into incubaid-1.7

Conflicts:
	src/client/common.ml