Updates definitions and tests according to cordova 3.6.0 release changes.

errorCallback should be an optional param.