Beginning the infrastructure needed to record FS events from BFS.

This will allow us to record FS accesses from Emscripten programs.