get_output_cell fails with no such output

rather than returning null
add wait_for_output(cell, index)

so you can wait for at least n outputs
adjustments to nb_roundtrip.js

A few waits, little changes to get it running with recent changes
update shutdown_notebook

now that get_output_cell raises if there is no such output