add back jemalloc and begin porting to it

This time, there is no attempt to replace the C allocator. The revision
used here is the stable 3.6.0 release.