SpecialPages inject store at the top and disentangle QueryPage class

* Inject Store at the top
* Split QueryPage class from SpecialPage
* Only pages with appropriate unit test have been modified

Change-Id: Ibda29e0d047947663e77c41f6b230c4b37845f90