A New Approach for Large Scale Multiple Testing with Application to FDR Control for Graphically Structured Hypotheses