Move init() into Slave::Slave().
Remove ids from events.
Introduce Indexer and Indexable, and use more references.
Only offer resources to one framework at a time.

This is how Mesos seems to work; it offers all resources it can to the most
worthy framework, and then waits until the next allocation interval to offer all
remaining resources to the then-most-worthy framework, and so on.