added support for basic http authentication

Added optional user/pass parameters for http authentication (in case your wikimedia server uses that like mine)
Tested on python2.7 on windows and linux.