Allow client code to specify the id to use for a profiling session.

This is useful for certain cases where it's hard for a caller to get to a
HTTP header with the id, e.g. in JSONP requests.