fixed images upload, gridfs storage and added multitenancy to mongo provider