Add trace functionality to WiredTiger API.

Possible only in diagnostic, with 'api_trace' connection configuration
string.
Switch API tracing to verbose=[api] from a connection option.
Add a verbose 'metadata' flag, that outputs WiredTiger metadata info.
Merge pull request #985 from wiredtiger/api-tracing

Add trace functionality to WiredTiger API.