Add trace functionality to WiredTiger API.

Possible only in diagnostic, with 'api_trace' connection configuration string.

I'm not sure how much I like this, but it's functionality I've wanted occasionally. Ideally we'd print out the parameters to the API calls as well (so we could potentially reconstruct applications), but that's a much more invasive change.