Realign with Moodle upstream

Add in useful updates from Moodle WebServices
Correct bugs since 1.5

Signed-off-by: Piers Harding <piers@catalyst.net.nz>
Update Zend lib from Moodle

Signed-off-by: Piers Harding <piers@catalyst.net.nz>