Adds transactions to cache db for some speedup.
Adds -D, --debug-idetools switch. Refs #10.