Execute code in a sandbox with a require() whitelist