[Android] Copy the right Device Capabilities API

It was copying the one for other platforms than Android.
[Android] Fix the issue of accessing asset resources with unnormalized URI.

Web applications may have unnormalized URI (additional slashes), which causes
failure of accessing them with AndroidProtocolHandler.
The fix was in Crosswalk, but https://github.com/crosswalk-project/crosswalk/commit/12b98a890de27d1ec96eb7f10558010fc7412e58
reverts it. So moving it back.

BUG=https://crosswalk-project.org/jira/browse/XWALK-2226
[Tizen][Runtime] Do not require to set the application version in config.xml.

On Tizen platform, a Tizen wgt web application is not required to have a
'version' field in config.xml, the Crosswalk runtime should follow this behavior.

BUG=XWALK-2220
Merge pull request #2274 from darktears/fix-xwalk-core

[Android] Copy the right Device Capabilities API
Merge pull request #2278 from takethathe/not_check_version

[Tizen][Runtime] Do not require to set the application version in config.xml
[Android] Implement the interface for onScaleChanged.

This patch is to add the bridge code for onScaleChanged.
In xwalk_render_view_host_ext.cc, it receives the event about page
scale factor changed, transfers the factor to XWalkContentsClientBridge.
Merge pull request #2279 from sqliu/fix-asset

[Android] Fix the issue of accessing asset resources with unnormalized U...
[Linux] Fixed the regression issue that failed to start xwalk from command line.

In the patch 053869eb we set the url_spec into manifest using
keys::kStartURLKey instead of keys::kURLKey in
ApplicationData::Create, and we forget to replace the
Application::URLKey by Application::StartURLKey when launching
application from url in ApplicationSystem::LaunchWithCommandLineParam,
in this case we would fail to lunch xwalk on Linux from command line
with a startup url as its argument.
Merge pull request #2281 from jondong/application-data

[Linux] Fixed the regression issue that failed to start xwalk from comma...
Merge pull request #2275 from wuhengzhi/onScaleChanged_bridge

[Android] Implement the interface for onScaleChanged.
Bump version to 8.37.188.0
[Android]Replace crunched image with source code image.

The resources in original xwalk_core_library are not valid 9-patch resource
and can't be used for Android studio/Maven. Have to use the resource in the
Chromium source.

BUG=
[Android] Use ant and xwalk_core_library for make_apk

Previously, we are copying the python script from gyp
and reproduce the steps gyp generated to build
xwalk_app_template_apk to make apk.

It's hard to maintain and now xwalk_core_library is
mature enough to be used as Android Library Project.

This commit uses ant and xwalk_core_library to make
apk to replace previous approach.

The changes including:
1. The app packaging tool structure:
 a. Assets, jars and template code are now put in
    "template", jars includes xwalk_runtime_java
    and xwalk_app_runtime_java.
 b. xwalk_core_library will be put in root folder of
    packaging tool.
 c. Scripts used by gyp generated commands are removed.
2. When make apk:
 a. Embedded Mode:
  1) Copy template to app folder named according to
     input app name.
  2) Copy xwalk_core_library into app folder.
  3) Move arch folders under "app/xwalk_core_library/libs/"
     to "app/native_libs/<arch>"
  4) For each target arch:
   4.1) Run "android update lib-project" for app/xwalk_core_library.
   4.2) Run "android update project" for app.
   4.3) Remove all subfolder in "app/xwalk_core_library/libs",
        to make sure it will only contains one arch folder after 4.4).
   4.4) Move back the needed native library for target arch back.
        it's actually partly reverting step 3).
   4.5) Run "ant release" in app.
   4.6) Copy and rename the built apk out to root folder of
        packaging tool.
 b. Shared Mode:
   1) Copy template to app folder named according to
      input app name.
   2) Remove xwalk_runtime_java.jar in "app/libs".
   3) Run "android update project" for app
   5) Run "ant release" in app.
   6) Copy and rename the built apk out to root folder of packaging
      tool.

BUG=https://crosswalk-project.org/jira/browse/XWALK-2128
[Android] Passwords of keystore as argument should not be mandatory

When make apk, if user wants to use their own keystore, they must
provide the password as command line argument for now.
Developers may have security concern for this.

This commit allows developers to input password while making apk.

BUG=https://crosswalk-project.org/jira/browse/XWALK-2138
[Tizen][Runtime] Fix unable to launch from a url.

The xwalk-launcher can not launch an application from a url, because of using a
wrong entry point. This patch will solve this, using the entry point
"StartURLKey" instead.

BUG=XWALK-2171
[Tizen][Runtime] Check the package type using application id instead.

Crosswalk runtime will check an installed web application type according to the
configure file name, if there's config.xml, it represents a WGT package, and
manifest.json represents an XPK package. But if a package have both of them,
it's always identified as XPK package, no matter it's actually a WGT or XPK
package. The patch will change to check the package type using the application
id, the tizen style app id represents a WGT package, xpk style id will be
identified as XPK package.

BUG=XWALK-2220
[Android] Add target to generate AAR library

use command "ninja -C out/Release xwalk_core_library_aar" can generate AAR library,
the construct of this library is Root/jni/so Root/res Root/classes.jar Root/R.txt
Root/AndroidManifest.xml
the AAR library test successfully by gradle with different architecture.

BUG=XWALK-1930
Merge pull request #2284 from takethathe/fix-xwalk-2171

[Tizen][Runtime] Fix unable to launch from a url.
Merge pull request #2270 from fujunwei/aar-library

[Android] Add target to generate AAR library
Merge pull request #2229 from wang16/ant_make_apk

[Android] Use ant and xwalk_core_library for make_apk