Added an 'ensure_indices' function that creates MongoDB indices for all declared models. The indices can be specified in the class variable 'indices' of the model and should be given as a list of tuples containing the name and the order (either pymongo.ASCENDING or pymongo.DESCENDING) of them.