MODE-2194 Changed the way the DatabaseBinaryStore interacts with JDBC connections and statements: each statement & connection will be closed on a per-operation basis. The only exception is reading the binary stream from a DB, in which case the connection & statement will be closed only when the stream is closed.
MODE-2194 Fixed a number of other issues around the DB binary store; refactored the test profiles and added a generic DB test for both ISPN and binary storage; completed testing against: H2, MySQL 5.5, PostgreSQL 8.x and 9.x, Oracle 10g and 11g and MS SqlServer 2008 R2.
Added cleanup code for a number of tests which weren't cleaning their data and which, if ran in a particular order, would fail. This problem was fixed in prod and 4.x and is exposed by changing the JDK version.