Refactor UI to be multi-server aware. No more global_key! Lots more tests.