Stage 1.0 Command line option for sandboxing and code clean up

- added command line support for sandboxing; the option is "Sandbox" and defaults to 0 (disabled)
- cleaned up code in sandbox.c