Adds support for mongoURL based connections

This is required for Heroku, since they communicate your mongodb details via a single MONGOLAB_URL env variable.