(#1107) - corrected regex in publish
(#1112) - Closing db causes a crash in leveldb even if changes have been cancelled
(#1108) - split out index.js
merge from dale