Implement multiple window management per application

Signed-off-by: Simon Busch <morphis@gravedo.de>