Add basic support for Diagnostics.Trace in browser (issue #272)