merge first stab at chunking support in php server