Foundational Principles for Large Scale Inference: Illustrations Through Correlation Mining