Add base TestCase class

Work in progress, looks a bit dirty right now
[#64] Support new token handling system

Use new token handling system described on
https://www.mediawiki.org/wiki/API:Meta#tokens for MediaWiki >= 1.24
Add test