changed config to allow for replset

- look for mongo.yml first in the chain of possible config files
- change default collection name to be based on environment
- added logic to look for 'hosts' in YAML which indicates replset and then build connection based on this
- refactored some code for better reading