Added support for Spring Profiles and updated Spring and Spring Security versions