reworked mongo_instance LWRP to potentially write a config file based off parameters supplied in the cookbook or other recipes. also passes whether or not this config file is being used to templates, etc

cleanup some erroneous log statements

handle a nil configfile

replset logic was reversed