Fix global variable leaks. (And turn on leak-checking in mocha.)

Closes gh #13.
Merge pull request #14 from cscott/gh-13

Fix global variable leaks. (And turn on leak-checking in mocha.)