test: Properly wait until iframe is loaded before switching to it.

Reviewed-by: Stef Walter <stefw@redhat.com>
shell: Load external pages from target host

Closes #1371
Closes #1420

Signed-off-by: Stef Walter <stefw@redhat.com>
 * Changed to use new cockpit.location API