Creating a configuration file at the user-application level and move log_modules to inside

+ add config.erl in n2o_sample
+ move log_modules fun to config.erl