Implement the 'require-sandbox' option.

Fixes #1596.
Merge pull request #1625 from 23Skidoo/require-sandbox

Implement the 'require-sandbox' option.