Fixed mongodb storage plugin

Added support of new storage API (tags). Now the plugin stores files in GridFS and information about tags in special collections in MongoDB.