Add recursive sandboxing and JSON support.

Closes #11.