Use Spring Security's EnableGlobalAuthentication and GlobalAuthenticationConfigurerAdapter

This commit fixes ordering issues like those found in #244