Handle and Manager implementation

This is not ready to be merged. The PR is created to serve for ongoing review.

First commit is just the original prototype with items renamed.

@kvark how do I make those wonderful check lists?
Sure. I must be wrong but thought that with_capacity didn't allocate, just set an upper limit.