Refactor to allow network servlets respond to GET and POST requests.