migrated servlet and web.xml to java config
use java config for major contexts