Use new method for getting tokens

https://lists.wikimedia.org/pipermail/mediawiki-api-announce/2014-August/000063.html
Released 5.006000