WICKET-5297 Animate ajax DOM manipulation smoothly

Re-order automatically any Effect JavaScript so the one with the longest duration is executed last and has notify=true, so any following JavaScripts should wait for it.