Removed console.log and replaced it with the debug module.

I changed the console.log into a debug such that users of this module
can turn debug messages on and off. Also, I've added debug messages
for commit and rollback.
Fixed a missing , in package.json
Merge pull request #1 from TiddoLangerak/master

Replaced console.log with debug module such that debug messages can be turned off.