Move main servlet to servlet context listener