Version 1.8: Synced with WordPress changeset 29165 and added more abstraction because of that.

git-svn-id: https://plugins.svn.wordpress.org/wp-db-driver/trunk@961571 b8457f37-d9ea-0310-8a92-e5e31aec5664