Rearchitecture of the window manager and the card view

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>