Improves in app.rb
Add settings for extract external configuration
Extract routes from app