Core redesign, hibernate and spring config, dao interfaces, first tests