Add MongoDB Spanstore

Add support for storing traces in MongoDB using the new SpanStore API.
buffer.duplicate() is more idiomatic