Split out all core logic from WikiaSearchIndexer::getPage and rewrote tests to back it up