Server-side PCs_chunked

* Chunking is done on the server after the scrape
* Cleaned up code