Fix composite timer looping on VT switching
When we switched VTs we went into a hot loop on X11 by the timer firing again and again. Fix that by stopping it immediately whenever it fires.
We use this opportunity to refactor the Compositor class a bit by moving functionality only used by the X11 child class to this instead of having it in the shared part.
Edited by Roman Gilg