cleanup no used code and removed junks
Merge pull request #405 from yuyiguo/cleanup-201408

cleanup no used code and removed junks
various upgrade and bug fixing for HG1410 release.
fix bugs for HG1410 release.
fixed a wrong order.
make the code easy to read
Merge pull request #411 from yuyiguo/DBS_3_2_6_pre2

Dbs 3 2 6 pre2
update client for listBlocks with open_for_writing.
Merge pull request #412 from yuyiguo/HG1410-client

update client for listBlocks with open_for_writing.