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?
This is where we are supposed to check for `LAST_GENERATION`, I believe, among other places. I know this PR is WIP, so this comment will likely to disappear once you implement it ;)