Fix compiler warnings

Warnings in all src/main/java folders have been reviewed and fixed with the following exceptions:
- changes that might break binary compatibility
- changes due to reliance on external deprecated code
- changes that seem contentious or may require additional review

In addition src/test/java folders have been reviewed and fixed up-to spring-jdbc.  The use of
deprecated EasyMock calls have not yet been updated.

The eclipse 'organize imports' command has also been used to fix any unused import declarations and provide a consistent style.