Add wait_for function that (what a surprise) waits for ssh connection

It is heavily based on ssh_accessible? function of studio_spec