Introduces SpecialWikibaseQueryPage::CACHE_TTL_IN_SECONDS

This will set the caching time in the base class. Before, this has been done in all implementations
separately.
Also fixes an issue about a sometimes undefined variable in SpecialWikibaseQueryPage::showQuery.

Change-Id: Id99fb240744d2d49061dc7c7b1b43e9de143231f