Simple skeleton for multi-threaded server (and client) in PHP