New RestServlet API, completed implementation