Update the C++ Scheduler API.

Review: https://reviews.apache.org/r/29175
Update the master and allocator + Added a test for acquiring dynamic reservations.

Review: https://reviews.apache.org/r/29174