remove files
use foreign couchdb modules
complete main file; update package.json