Fix unit tests and add MiJ writer

I found myself needing a node.js module that could write MiJ documents, so I added that feature to marcjs. In the process, I discovered that the unit tests were being run by nodeunit but were written for Mocha, so I fixed that, too.