heavily improved php and js error handling on soap errors