Added wait and require.wait (reference to $LAB.wait).

Now scripts can be required like so:

require('script1');
require('script2');
wait(function() {
    executeCode();
});