Scrutinizer issues and IXR library updates

Many many PHPDocs, unused vars, missing declarations etc

Update of IXR library to 1.7.4 + improvements from wordpress