Use setTimeout when setImmediate is not available.

setImmediate is not supported by webit and gecko,
causing this to fail most client side loopback apps.