add a Servlet for RESTful service and a controller for handling file
upload