Support for Flask-PyMongo v0.2.0 and later. Closes #11.