refactor to spring 3.1.4 and added spring-security dependecies