ENYO-1400: handle HTTP failure status as errors

- PUT/404 is currently not handled

Enyo-DCO-1.0-Signed-off-by: Francois-Xavier KOWALSKI <francois-xavier.kowalski@hp.com>
ENYO-1712: fix jshint complaints

Enyo-DCO-1.1-Signed-off-by: Francois-Xavier KOWALSKI <francois-xavier.kowalski@hp.com>
ENYO-1712: return PhoneGap statusCode along with errorMessage

- This enables treating differently 401 (Unauthorized) and other
  errors.

Enyo-DCO-1.1-Signed-off-by: Francois-Xavier KOWALSKI <francois-xavier.kowalski@hp.com>
ENYO-1712: JavaScript & whitespace cleanup

- No functional change in this commit

Enyo-DCO-1.1-Signed-off-by: Francois-Xavier KOWALSKI <francois-xavier.kowalski@hp.com>
ENYO-1712: update following PhoneGap build signing keys policy change

Details at: https://build.phonegap.com/blog/upcoming-security-changes

Enyo-DCO-1.1-Signed-off-by: Francois-Xavier KOWALSKI <francois-xavier.kowalski@hp.com>
Merge pull request #1 from enyojs/ENYO-1712

ENYO-1712: implement changes required by new PhoneGap Build policy
ENYO-826: release version 1.0.2 to track new _keys_ feature.

Enyo-DCO-1.1-Signed-off-by: Francois-Xavier KOWALSKI <francois-xavier.kowalski@hp.com>
Merge branch 'master' of github.com:enyojs/phonegapbuildapi
ENYO-826: ignore NPM-generated & NPM-managed files

Enyo-DCO-1.1-Signed-off-by: Francois-Xavier KOWALSKI <francois-xavier.kowalski@hp.com>
ENYO-826: fix ` npm install`  on windows

- use 1.2.x depedency syntax (no more `git://` one)
- create shrinkwrap

Enyo-DCO-1.1-Signed-off-by: Francois-Xavier KOWALSKI <francois-xavier.kowalski@hp.com>
ENYO-1891: do not crash when no PGB token or user is defined

Enyo-DCO-1.1-Signed-off-by: Francois-Xavier KOWALSKI <francois-xavier.kowalski@hp.com>
ENYO-1891: do not crash when no PGB token or user is defined (2)

- Do not try to JSON-parse an empty/undefined answer

Enyo-DCO-1.1-Signed-off-by: Francois-Xavier KOWALSKI <francois-xavier.kowalski@hp.com>
Merge pull request #2 from enyojs/ENYO-1891

ENYO-1891: do not crash when no PGB token or user is defined
ENYO-1420: trap caolan/request Exceptions as Error's

- Do to consider the 'end' of the ZIP InputStream as a successful
  answer from PhoneGap Build.

Enyo-DCO-1.1-Signed-off-by: Francois-Xavier KOWALSKI <francois-xavier.kowalski@hp.com>
Merge pull request #3 from enyojs/ENYO-1420

ENYO-1420: trap caolan/request Exceptions as Error's
Merge pull request #2 from enyojs/master

Handle new PhoneGap Build keys policy