The homotopy theory of polyhedral products