Introduced the changeover thread and added the changeover progress and result pages.
Removed JavaScript redirect and used native flask calls.