Added restack on focus change, real docking, correct focus traversal.