Make AST query storage non-global.
Merge pull request #224 from prometheus/refactor/non-global-storage

Make AST query storage non-global.