changes to instrument() API.

1) allow for not specifying an output file.
2) allow for generating IID map and .ast.json files
Change record() API to not require a trace file name