moved server config to resource.js. Refactoring/organization