starting the server should be part of a plugin; added an externally accessible config object; the configuration and plugins are called in the context of the plugin object
make sure that the options object exists
set config.env; attach the config object to the exported function