Remove direct dependencies on Hibernate and Spring.

Use indirect dependencies via java.utilities insteadly.
upgrade to Hibernate4