api: Complete task functions: list, add, del task