Refactor to allow FileServlet respond to GET and POST requests.