Upgrade to Hibernate 4

This change upgrades Spring Web Flow to Hibernate 4 but remains
compatible with Hibernate 3.

Issue: SWF-1534