First stab at a redesigned selection manager, not functional, because I broke some of the jQuery selectors, and added a bunch of stuff!

Signed-off-by: Marko Locher <marko@locher.at>