style(cmd/ipfs/pprof) move defer close to initialization
feat(cmd/ipfs1) add mem profiling in debug mode

TODO add memory profiling to ipfs2
Merge pull request #235 from jbenet/feat/mprof-in-cli-ipfs1-debug

perf(cmd/ipfs) write mprof file in debug mode
rewrite add command to use dagwriter, moved a pinner into the dagwriter for inline pinning