[Android] Add reload getTitle clearHistory in XWalkView for internal use
- Load: reload
- UI: getTitle
- Navigation: clearHistory
- Add stop, reload buttons in XWalkViewShellActivity
- Add testcase for reload, clearHistory
[Android] Support shared library mode for XWalkRuntime when using WindowAndroid.

XWalkRuntime in shared mode requires WindowAndroid to have a share library context
to get resources in shared library.  Use the library context to construct WindowAndroid
in XWalkView.

BUG=https://github.com/crosswalk-project/crosswalk/issues/678 , 666
[Android] Add the test case about setDatabaseEnabled

Test database by set the function setDatabaseEnabled true or false.
Then get the result by load the html which check the database
enabled or not.

This test case should add the parameter "--test_data", as follows:
build/android/run_instrumentation_tests.py --test-apk XWalkCoreTest \
--test_data xwalkview:xwalk/test/data/device_files/ \
--verbose -I --num_retries=1 -f testDatabaseEnabled
[Tools] Add increment-version.py.

It is a more generic version of bump-canary-version.sh, and allows one to
increment either the build version (for Crosswalk canaries) and the patch
version (for Crosswalk betas).

Additionally, the new tool is written in Python instead of a mixture of
shell script and Perl, so it also fixes #699.

bump-canary-version.sh will be removed in a follow-up commit because the
existing canary build scripts need to be adjusted to use the new script
after it is committed.
[Android] Don't add permissions for runtime library

Since it's used by web app, the permissions are declared and requested
by web app APKs. Remove them in runtime lib apk.

BUG=#480
[Android] Implement runtime client with runtime library embedded

We should support both shared and embedded mode for runtime
client to use runtime library, which providing java class, native
lib and pak resources for runtime client.

Currently, only shared mode is implemented. In shared mode,
runtime library is an Android app.

This commit implements an alternative to allow packing runtime lib
embedded in runtime client. The api will stay unchanged and the
client of runtimeView will not aware the difference.

Add a new target, xwalk_runtime_client_embedded_shell, which is
the shell using runtime view with library embeded. It's for
testing purpose.

TODO=https://github.com/crosswalk-project/crosswalk/issues/657
BUG=https://github.com/crosswalk-project/crosswalk/issues/640
[Android] Specify version code/name for android outputs at gyp time

The version in AndroidManifest.xml has two parts:versionCode and versionName.
VersionCode is an increasing integer to identifing upgrade.
VersionName is a human readable string.

For xwalk, VERSION file should be the only place to maintain version.
So this patch removes the hard coding in AndroidManifest.xml.

Insteadly, version code and version name will be specified as parameters at
gyp time for android's ant action.

For versionCode, it's calculated through version.
The formula is:
versionCode = shift +
              patch * 10 +
              build * 1000 +
              (major+minor) * 100000
Shift is the configuration bit. Currently, 1 for x86, 2 for armv7 and 3 for arm.
[Android] Disabled the testNormalUrl temporarily.

Since the device issue, it can not access the network,
so disabled testNormalUrl temporarily.
It will be enabled later.
[Android] Fix the invalid arguments issue in XWalkRuntimeClient.onActivityResult.

Missing the instance argument in onActivityResult, this causes exception while
onActivityResult is called.

BUG=https://github.com/crosswalk-project/crosswalk/issues/732
Merge pull request #728 from yongsheng/permissions

[Android] Don't add permissions for runtime library
Merge pull request #704 from wang16/gyp_android

[Android] Specify version code/name for android outputs at gyp time
Merge pull request #729 from wuhengzhi/disableNormalUrl

[Android] Disabled the testNormalUrl temporarily.
Merge pull request #733 from sqliu/otcshare-hotfix-onActivityResult

[Android] Fix the invalid arguments issue in XWalkRuntimeClient.onActivi...
Bump version to 1.29.6.0
Merge pull request #615 from kurli/api

[Android] Add reload getTitle clearHistory in XWalkView for internal use
Merge pull request #560 from wuhengzhi/master

[Android] Add the test case about setDatabaseEnabled
[Android] Disabled the testClearHistory testReload temporarily.
Since the device issue, it can not access the network,
so disabled testClearHistory & testReload temporarily.
It will be enabled later.
Merge pull request #746 from kurli/master

[Android] Disabled the testClearHistory testReload temporarily.
[Android] Fix randomly fail issue when copying files for app template

Because in the gyp system, the "copy" action may be executed in parallel,
which breaks the assumption of target "prepare_xwalk_app_template".

So create a new target "prepare_xwalk_app_template_from_chromium", and make
"prepare_xwalk_app_template_from_xwalk" depend on this target.
That would help to serialize the "copy" sequence.

BUG=https://github.com/crosswalk-project/crosswalk/issues/734
Merge pull request #743 from junmin-zhu/random

[Android] Fix randomly fail issue when copying files for app template