Backup and restore the entire require cache
Add tests for fix for #1 (thanks @nathasm!)
Merge pull request #2 from iarna/remove-all-loaded

Backup and restore the entire require cache