Add CommonJS code coverage

This PR adds code coverage support for CommonJS modules. See #182.