ENYO-1712: make ares filesystem-layout more bootplate-like

- turn `lib/service` into `services/source`
- feed `lib/localStorage/*` into `utilities/source`
- move `project-view/source/PhonegapBuild.js` into `services/source`
- fix causes glitches in `package.js` & `HermesFileTree.js`

Enyo-DCO-1.1-Signed-off-by: Francois-Xavier KOWALSKI <francois-xavier.kowalski@hp.com>
ENYO-1712: remove phonegapbuildapi & re-add as a git submodule

- use [enyojs/phonegapbuildapi](https://github.com/enyojs/phonegapbuildapi)
  rather than a file-by-file copy of the original project
  [germallon/phonegapbuildapi](https://github.com/germallon/phonegapbuildapi)

Enyo-DCO-1.1-Signed-off-by: Francois-Xavier KOWALSKI <francois-xavier.kowalski@hp.com>
ENYO-1712: remove unused mapped folders

Enyo-DCO-1.1-Signed-off-by: Francois-Xavier KOWALSKI <francois-xavier.kowalski@hp.com>
ENYO-1712: make ares filesystem-layout more bootplate-like (2)

- turn `lib/service` into `services/source`
- fix causes glitches in `package.js` & `HermesFileTree.js`

Enyo-DCO-1.1-Signed-off-by: Francois-Xavier KOWALSKI <francois-xavier.kowalski@hp.com>
ENYO-1712: add dependency on `https://github.com/mikeal/request`

- This dependency is common with ENYO-831 (cherry-picked same commit)

Enyo-DCO-1.1-Signed-off-by: Francois-Xavier KOWALSKI <francois-xavier.kowalski@hp.com>
ENYO-1712: add dependency on node-mime (MIT-licensed)

- this is a sub-dependency of phonegapbuild, for which we are already
  using our own (modified) version.
- https://github.com/broofa/node-mime

Enyo-DCO-1.1-Signed-off-by: Francois-Xavier KOWALSKI <francois-xavier.kowalski@hp.com>
Revert "ENYO-1223: add node-formidable multipart/form-data upload manager"

This reverts commit 3fbf92269b596e374f90539ee69742c6b4f7bf44.

Use the node-formidable version that comes built-in with express & connect.
ENYO-1712: remove direct bdPhoneGap dependency on node-formidable

Enyo-DCO-1.1-Signed-off-by: Francois-Xavier KOWALSKI <francois-xavier.kowalski@hp.com>
ENYO-1712: remove nodejs-file-server.js archived by default

Enyo-DCO-1.1-Signed-off-by: Francois-Xavier KOWALSKI <francois-xavier.kowalski@hp.com>
ENYO-1712: LocalStorage: bind callbacks only when `self` is provided

Enyo-DCO-1.1-Signed-off-by: Francois-Xavier KOWALSKI <francois-xavier.kowalski@hp.com>
ENYO-1712: ServiceRegistry: Add generic `<Service>#authorize()`

- Services implementing security (eg. Phonegap, Dropbox… etc) need to
  override the `Service#authorize()` method.
- add a completion callback to `ServiceRegistry#setConfig()` to allow
  including it in an `async#serie()` or `async#waterfall()`
- reduce service resolver verbosity

Enyo-DCO-1.1-Signed-off-by: Francois-Xavier KOWALSKI <francois-xavier.kowalski@hp.com>
ENYO-1712: catch `onUpdateAuth` events at `Ares()` level (top-most)

Enyo-DCO-1.1-Signed-off-by: Francois-Xavier KOWALSKI <francois-xavier.kowalski@hp.com>
ENYO-1712: add an explicit `authorisation` step to PhonegapBuild

- It is now possible to check the user's credentials from the
  `AccountConfigurator()`

Enyo-DCO-1.1-Signed-off-by: Francois-Xavier KOWALSKI <francois-xavier.kowalski@hp.com>
ENYO-1712: check PhoneGap credentials & retrieve account details

Enyo-DCO-1.1-Signed-off-by: Francois-Xavier KOWALSKI <francois-xavier.kowalski@hp.com>
Merge branch 'master' of github.com:enyojs/ares-project into ENYO-1712

Conflicts:
	.gitmodules
	hermes/node_modules/phonegapbuildapi

Fixes: fsDropbox crashing behind an un-configured proxy (now reports
       error)
ENYO-1712: Add a link to manage PhoneGap build signing keys.

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

[#ENYO-1712] refactor PhoneGap build to enable signing keys
Merge branch 'master' of github.com:enyojs/ares-project into ENYO-1786
ENYO-1786: Updated the warning when Ares is started under IE8
No longer block the launch of Ares

Enyo-DCO-1.1-Signed-off-by: Yves Del Medico <yves.del-medico@hp.com>