Event-driven PHP server and application infrastructure