Added logout support for Spring Security.