[Android][Extension] Fixed getCPUInfo algorithm for device capabilities

The original algorithm is not accurate because it ignores the time spent in iowait,
irq and softirq. Now the result is the same as `top` shows.
[Runtime Model] Refactor the Application Storage system.

Rename ApplicationStore to ApplicationStorage, DBStoreSqliteImpl to
ApplicationStorageImpl.

Add the system events setter/getter method in ApplicationData, so that
all application related information can be cached in it.
[Android] Check webview legacy api for external protocol handling first

Crosswalk provides two ways for embedders to extend protocol handling.
1. The same api as legacy webview api in XWalkContentsClient,
   shouldOverrideUrlLoading().
2. Extends XWalkNavigationHandler.

By default, xwalk doesn't do anything in shouldOverrideUrlLoading, but
handles action uri in XWalkNavigationHandler.
To avoid the case that some embedder override shouldOverrideUrlLoading
in the way conflicts with what xwalk already did in XWalkNavigationHandler,
calling shouldOverrideUrlLoading prior to invoke XWalkNavigationHandler
so that embedders won't get confused.

BUG=https://crosswalk-project.org/jira/browse/XWALK-654
[Android] Correct the error message for embedded sample app

Change to more general term:
"Crosswalk failed to initialize."
The detail information about the failure will be shown in
the pop up dialog.

BUG=https://crosswalk-project.org/jira/browse/XWALK-649
[Android] Add the check of application launch path in packaging tool.

   Since there is no prompt when there is no application launch path
in the manifest.json file, to improve the user experience of crosswalk,
in the packaging tool, add the check of application launch path in packaging
tool. The related test case is added.

BUG=https://crosswalk-project.org/jira/browse/XWALK-645
[Android] Update the user interface of http authentication dialog.

  Update the text margin and the string of http authentication dialog.

BUG=https://crosswalk-project.org/jira/browse/XWALK-646
Query the number of presentation displays when extension is created.

In some case, e.g. in cordova container, onResume method won't get
called at startup, it is called only when resuming from background
status.

This fix can make sure that presentation.displayavailable flag won't
depend on the fact if PresentationExtension::onResume gets executed.
[Android] Put app resource in sub directory of assets

Before this all app resources are put in assets, which may cause
confliction with other resources(of runtime, extensions etc).
So we define a sub directory "www" to put the app resources
instead.

BUG=https://crosswalk-project.org/jira/browse/XWALK-174
[Android][SysApps] Change the unit of storage capacity to byte.

According to the spec
http://device-capabilities.sysapps.org/#systemstorage-interface ,
the ``capacity`` should be in bytes but the original implementation
is in kilobytes.
[Android] Fix that instrumentation test is not using ShellActivity

The correct usage of instrumentation test is to direct operate
the Activity in target package instead of creating one.

Change the test util base Class to get XWalkRuntimeClient from
XWalkRuntimeActivityBase.

TODO(hengzhi): Fix the same issue with CoreShellTest and RuntimeShellTest
Merge pull request #1290 from ShDavidliu/packaging_manifest

[Android] Add the check of application launch path in packaging tool.
Merge pull request #1299 from ShDavidliu/ui_http_auth

[Android] Update the user interface of http authentication dialog.
[Android] Enable the embedded mode by default for packaging tool

Switch default value of mode from shared to embedded, and modify
the comments.

BUG=https://crosswalk-project.org/jira/browse/XWALK-542
Merge pull request #1322 from itlodge/fix_storage_unit

[Android][SysApps] Change the unit of storage capacity to byte.
[Android] Add app URI scheme support

1 App URI scheme is part of sysapps API, http://app-uri.sysapps.org
2 On Android the local resources are located in assets, which could
be accessed by file:///android_asset/ scheme. So we bridge the app
URI to file URI.
3 Add the HTTP response support(200, 400, 403, 404, 501).

BUG=https://crosswalk-project.org/jira/browse/XWALK-174
[Tizen][Temp] Enforce device scale factor value to '2.0' on Tizen

Enforce device scale factor value to '2.0' on Tizen so that viewport meta tag works properly on Tizen devices.
This is a workaround until Chromium r235967 is not within chromium-crosswalk code base.
Bump chromium-crosswalk in DEPS.xwalk
Merge pull request #1325 from pozdnyakov/Force_Device_Scale

[Tizen][Temp] Enforce device scale factor value to '2.0' on Tizen
Merge pull request #1321 from junmin-zhu/default

[Android] Enable the embedded mode by default for packaging tool
[Tizen] Indicator: Close FD after destruction of watcher