[tracing] Initial tracing API.

This is used in conjunction with a collection & analysis server
to analyze memory usage and other aspects of a program running
under emscripten.
[tracing] Integrate the tracing stuff.
[tracing] Instrument dlmalloc.c

These changes compile out entirely if tracing is not enabled.
[tracing] Initial trace collection server.