Refactored to use YAML routing and extended Application class