Add schedules API methods and tests.