Update XHR code to handle arraybuffer responseType
add the missing test8.php and deal with defined but never used errors
fix mixed tabs and spaces
Merge pull request #300 from emilkm/master

Changed XHR code to handle arraybuffer responseType

Reviewed-By: Ben Combee (ben.combee@lge.com)