Description
Currently, it is very hard to understand all the various things being done in HttpShardHandler. I'm starting with refactoring the prepDistributed() method to make it easier to grasp. It has standalone and cloud code intertwined, and wanted to cleanly separate them out. Later, we can even have two separate method (for standalone and cloud, each).