Use RESTful endpoints

Change /new to /task and /delete to /task; let the request type handle the “actions”.