Fixed typo in error message.
Updated addDocToIndex to skip parsing JSON if the batch param passed in is already an object.
Added test for indexing via si.add() with an object instead of a string.
- Added a logger, which is right now just a wrapper around console.log that can be silenced for tests. (This is so that tests do not put out so much output that they overwhelm Travis.)
- Updated indexer.js to use logger instead of directly calling console.log.
- Updated npm test to clear si directory before start and to use NODE_ENV=test.
Merge pull request #38 from jimkang/master

Support objects in `indexer.addDocToIndex()`.