Initial step in moving out code from SimpleQuery special page

Includes introduction of two simple adapters to abstract away
from MediaWiki design issues. These can later be moved to their
own component, as they are of use elsewhere, and more code is
needed to isolate other users from this legacy API.

Change-Id: If13915c74f7bc4bb7f13ee451e2f589d19439198