Spelling.
Only use one connection to MongoDB.

Connecting is expensive, and we only need one.
Add possibility for authentication.

Username and password for connecting to the MongoDB backend can be
specified as optional arguments.
Allow rule directory to be specified as argument.
Merge pull request #2 from yaunj/master

Various changes