CORE-6002: Refactor spring DI and security

Corrected spring configuration issues. 
Also corrected a servlet url duplicate naming pattern (e.g. `belphegor/belphegor/login` and `de/discoveryenvironment/login`).