New npm packages
Added the start of the mongodb switch
More work on porting to mongodb