refactor server app config.coffee