Merge pull request #132 from johnmyleswhite/isolate

isolate tests by using temporary directories and properly undoing setwd() calls
cleanup
Merge branch 'master' into 85-code-dir