Slight refactor of mux setup code, removed 301 redirect which was
messing up browser cache, started integration test for logging out