Adds support for resource URIs for MongoHQ and Mongolab.

Old-style MONGODB_* configuration is left in place, but
Flask-PyMongo at least uses the MONGO_URI in preference.

At some point in the future, we should remove the MONGODB_*
selectors if it is possible to do so.