Refactored TileServlet.