batchundelete: overhaul to work with the API

I've been talking about this for years and I've finally got around to
it. I hope it works!
bye-bye Morebits.wiki.legacyWiki (aka Wikipedia.wiki)!

Your time has come...