Move QueryBrowserPage back to packages to allow running in IntelliJ

Functional tests couldn't be run in IntelliJ but ran in CI.
Copied Login.java to be consistent as well.