Added new subclasses of TransactionTemplate to be able to easily inject an
instance with desired behavior. Cleaned out more code to fix problems in
opennms-dao unit tests.