SPARK-4214. With dynamic allocation, avoid outstanding requests for more...

... executors than pending tasks need.

WIP. Still need to add and fix tests.
This is unclear. We should add that the latter means we don't need more executors than the number of pending tasks.