Build oasis.amd.js again.

Also don't assume `jsframe` is in $PATH.
Minor refactoring.
Don't connect ports until sandbox is ready.
Only run web worker tests if Worker is available.

Tests more or less pass in IE9.

The one failure is the requirements test that complains about the lack of
support for sandboxing.