Start of Update to mediawiki 1.23

there will be loads of patches because of the size of changes. which will be too big to see if I included them all in one patch.