Add response logging. Fix errors with PHP 5.4 and check for soap extension.