Allow providing config programmatically

Extract index.js to bootstrap.js, encapsulate it in a function. Make index.js call this function directly, but users wanting to provide their own configuration can do so by requiring bootstrap.js instead.
Disable require() of config in logger

Need to avoid this circular dependency when bootstrapping using custom configuration object.