datastore: refactor transaction & datastore.
package.json: extract lint command.
Merge pull request #96 from stephenplusplus/transactions

datastore: refactor transaction & datastore.