Migrate to Servlet API 3.0. Servlets.
Migrate to Servlet API 3.0. Filters.
Replace main servlet with page.