Simple server framework with dependency injection