Add projection functions to the bson module
Improve the ensure_index API