Renames main file to index.js to easier include internally (convention based)
Refactors cli as a module, and adds tests for the cli.
Adds Mac OS X temp file to ignore
Adds script for running test coverage