Extracted out almost everything into MediaWiki_Api

Need to just test if it still works. lol!