imported patch realloc_def
whitespace
Bump the version on develop.
Fix the check for orphaned pages in the docs, minor cleanup.
Add section headings to the programming guide page.
Merge pull request #563 from wiredtiger/realloc_def

Add a new __wt_realloc_def macro to simplify array management
Use parenthesis to group x - y + z expression.
fix a comment
Add a version flag to connection verbose configuration.

The version flag causes library and database file version information to
be output to the verbose channel. Configure with "verbose=[version]" in
the wiredtiger_open connection configuration string.
Basic changes to impose namespaces on top of the underlying KVS store:
create a new "uri" based structure for each underlying name, prefix all
records with a packed, unique 8B ID (and add a "WiredTiger" name space,
with an ID of 0).
Copy the entry filled with NULLs, otherwise the search for a matching
method name won't terminate.
Make sure we add the slot of NULL's, otherwise the search for the method
name will drop core.
Now that the memrata driver is storing the basic configuration (including
key and value formats), we don't need to modify the configuration array
being passed to the underlying session.open_cursor method.
More namespace changes: we can now pass kvs_XXX options (including
kvs_devices) to every session method that takes a URI.

Move the URI structure configuration into the session.open_cursor support,
all session.create does now is store the master record for the URI on
the device.  Move format configuration from the cursor into the underlying
URI structure.

Rework the record number allocation to avoid races (we lock it before
we allocate a value, and we check that any explicit record creation
doesn't allocate a record past it).

Sort the list of devices so ordering doesn't affect naming.
Fix a memory leak, error handling cleanups.
Memory leak: free the underlying WT_DATA_SOURCE structure on termination.
Every WiredTiger API that takes a URI must now configure kvs_devices.

Specify kvs_open_o_truncate when opening the device, we're starting
fresh on every run.
Add the kvs_dump() function back in (it only handles row-store, though).

Add a new kvs_open configuration string, kvs_open_o_truncate, clears
the store on open.
Fix a core dump: handle adding configuration options to methods that
have no existing checks.
whitespace