Fix memory leak in forestdb_dump
Fix memory leak in forestdb_dump

- key, meta and body in docio object were not freed at the end of
print_doc function.
- Add internal memleak tool commands for checking memory leak.

Change-Id: I683f4f3922eb6223dba9b7b4890a822524d88f1c

couchbase/forestdb,hisundar/forestdb,yyangpan/forestdb,yyangpan/forestdb,jinxuan/forestdb,sushmaad/forestdb,wurikiji/forestdb,zhaog/forestdb,sushmaad/forestdb,nvoron23/forestdb,seem-sky/forestdb,uvenum/forestdb,hisundar/forestdb,seem-sky/forestdb,joliss/forestdb,wurikiji/forestdb,zhaog/forestdb,jinxuan/forestdb,nvoron23/forestdb,joliss/forestdb,uvenum/forestdb,couchbase/forestdb