Refactor app configuration into config/ folder