Updated Spring Framework version and Spring Data versions; refactored to clean some deprecated methods

Updated Spring framework to 3.2.4-RELEASE and Spring Data to 1.6.1-RELEASE. 
Also refactored some deprecated methods using the recommended ones.