Start of Update to mediawiki 1.24 alpha update

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.