This is the main API class, used for both external and internal processing.
Group all the pieces relevant to the context of a request into one instance.
you have access to all of the normal MediaWiki so you can get a DB use the etc For full docs on the Maintenance class