ENYO-3561: adding error page for PhoneGap build

This error page will be displayed inside phonegap container if the Enyo code fails during its initialization. The PGB service will downlad this static file out of Ares IDE (as a static resource).
ENYO-3561: adding error handler as debug.html in phonegap archive

PGB archive does not contain the debug.html file. this new code will create this missing file as a copy of the PGB error page that Ares serves as a static resource.
Merge branch 'master' of github.com:enyojs/ares-project into ENYO-3561
Merge branch 'master' of github.com:enyojs/ares-project into ENYO-3561
ENYO-3561: corrected unset protocol in request for error page

The error page URL was not defined with its protocol which failed the copy of error.html as debug.html in the app before posting.
Added as well some variable in warnings displayed on console for troubleshooting in case of issue.
Merge branch 'master' of github.com:enyojs/ares-project into ENYO-3561
Merge pull request #752 from enyojs/ENYO-3561

ENYO-3561: add error page for PGB applications