Extracted out MediaWiki_Api as a library.

Some work still left to do. Also the library is currently bundled in while it
is supposed to be maintained separately