ENYO-1400: update existing application on build.phonegap.com

- test using curl command-line (with up-to-date doc)
- fix phonegapbuildapi: api.js, as done in an upstream fork at
  https://github.com/enyojs/phonegapbuildapi/commit/5a516543ce5745a5b2ebad074f4083068e70df20

Enyo-DCO-1.0-Signed-off-by: Francois-Xavier KOWALSKI <francois-xavier.kowalski@hp.com>
Merge remote-tracking branch 'enyojs/ENYO-1400' into ENYO-1189
Merge branch 'master' of github.com:enyojs/ares-project into ENYO-1189
ENYO-1153: added some comments

Enyo-DCO-1.0-Signed-off-by: Dominique Dumont <dominique.dumont@hp.com>
ENYO-1153: reworked selection of node entries

2 mains changes:
* refreshFileTree accepts a 2nd optional parameter (a folder or file id)
  so that this entry will be selected during the refresh.
* call this.$.selection.select only on nodeTap and in refreshFileTree
  for the case above. As a consequence, selection is populated only
  when needed, not during refreshFileTree.

Enyo-DCO-1.0-Signed-off-by: Dominique Dumont <dominique.dumont@hp.com>
ENYO-1153: refreshFileTree is invoke with a folderId to select

Reworked the delayedRefresh function to speicify the folderId or
fileId to select in the file list.

Enyo-DCO-1.0-Signed-off-by: Dominique Dumont <dominique.dumont@hp.com>
ENYO-1189: enable both /phonegap/build & /phonegap/deploy services

- This gives access to elementary steps of the build process.  This is
  both for testing & possible future usage, if we deploy apps by means
  other than PhoneGap.
- Access to build.phonegap.com does not work behind a non-transparent
  HTTP proxy.  This is tracked by https://enyojs.atlassian.net/browse/ENYO-1420

Enyo-DCO-1.0-Signed-off-by: Francois-Xavier KOWALSKI <francois-xavier.kowalski@hp.com>
ENYO-1153: Merge branch 'master' into ENYO-1153

Conflicts:
	lib/service/HermesFileTree.js

Enyo-DCO-1.0-Signed-off-by: Dominique Dumont <dominique.dumont@hp.com>
ENYO-1225: Orchestrate the app submission to build.phonegap.com

Enyo-DCO-1.0-Signed-off-by: Yves Del Medico <yves.del-medico@hp.com>
ENYO-1225: Orchestrate the app submission to build.phonegap.com

Enyo-DCO-1.0-Signed-off-by: Yves Del Medico <yves.del-medico@hp.com>
Merge branch 'ENYO-1189' of github.com:enyojs/ares-project into ENYO-1189
Merge remote-tracking branch 'origin/ENYO-1225' into ENYO-1189
ENYO-1410 - fix the "Uncaught TypeError: Cannot read property 'target' when trying to read project.json without phonegapbuild parameters.

Enyo-DCO-1.0-Signed-off-by: Marie-Antoinette de Bonis-Hamelin (Marian)
marie-antoinette.de-bonis-hamelin@hp.com
Merge pull request #111 from enyojs/ENYO-1153

ENYO-1153: fix to select new files of folder 
Merge remote-tracking branch 'enyojs/ENYO-1189' into ENYO-1410
ENYO-1410: fix bad merge

Enyo-DCO-1.0-Signed-off-by: Marie-Antoinette de Bonis-Hamelin (Marian)
marie-antoinette.de-bonis-hamelin@hp.com
ENYO-1189: use optimist to parse options in hermes phone gap build service

Enyo-DCO-1.0-Signed-off-by: Francois-Xavier KOWALSKI <francois-xavier.kowalski@hp.com>
ENYO-1189: rename misleading HermesService into HermesFileSystem

- an Hermes service is a provider using an intermediate Node.js server
- a FileSystem service implements a specific programmatic interface
  defined by FileSystemService.js

Enyo-DCO-1.0-Signed-off-by: Francois-Xavier KOWALSKI <francois-xavier.kowalski@hp.com>
ENYO-1189: start hermes phone gap build service with the main ide.js

Enyo-DCO-1.0-Signed-off-by: Francois-Xavier KOWALSKI <francois-xavier.kowalski@hp.com>
ENYO-1189: Harmonia & DirectorySelctor use "filesystem" services only

- Filter-out the list of services from ServiceRegistry to retain only
  the ones providing the "filesystem" type.

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