Add support for auto-configuration of Commons DBCP2

Closes gh-1292
Closes gh-1477