Define tasks as RESTful resource