smalloc: implement HeapProfiler

To properly report the use of external memory each Persistent must be
hooked into the HeapProfiler.
remove HeapDump
prep buffer.js for new smalloc api
begin prepping node_buffer.cc for using smalloc
move few functions around for readability