Switch to maven
Fix userTypes (change to hibernate 4.1)