Mediawiki Wordpress authentication extension

This script assumes mediawiki is installed inside the wordpress folder.
It will check if user is logged into wordpress, and if so, either create
an account on mediawiki and log them in.