API for creating and listing todos.