Require Rack
Refactor file structure
Extract error rendering