Fixed the ApiServlet to implement httpServlet instead of inheriting from
the MainServlet.