Move module.exports code out of harmony package

Instead of using a small bit of code for `module.exports`, I decided to write
a comprehensive package that allowed the use of both `module.exports` and the
`exports` alias, as well as using modern methods instead of deprecated ones.