use queries directory instead of file for elastic-recheck

moving elastic-recheck to a queries directory instead of a file
means we need to make the graphs support that. Also refactor out
the er_state_dir to make changing that easier when we pull in the
web console.

2Bupdate elastic-recheck bot config to use queries directory

Change-Id: Ifcc71511c066e8aee5cb74e013555c628f270e29
Merge "use queries directory instead of file for elastic-recheck"