vnodeWrite.c does not include dnode.h
move some functions in dnode into vnodeMain.c and vnodeWrite.c
[TD-32] 1. add tsdb query processing functions. 2. refactor connect to employ async way. 3. change some variables' name