[Android] Add test case for onReceivedErrorTest().

This patch is to add test case for onReceivedErrorTest().
Open some urls with error format, the resource client will receive
the related error. Verify the error information with the expected
result.
[Android] Embedding API v2

This commit added following APIs as Embedding API:
XWalkResourceClient.shouldOverrideURLLoading
XWalkUIClient.onUnhandledKeyEvent
XWalkUIClient.shouldOverrideKeyEvent
XWalkUIClient.onReceivedTitle
XWalkUIClient.onPageLoadStarted
XWalkUIClient.onPageLoadStopped

Some of those APIs were implemented inside xwalk core
internal previously. Now moving them to public Client
classes of XWalkView to expose in Embedding API.

Beside, remove the internal callbacks which are decided
not to expose in Embedding API and currently are dead code
or have empty implementation in core internal, including:
XWalkWebChromeClient.onReceivedTouchIconUrl
XWalkWebChromeClient.getDefaultVideoPoster
XWalkWebChromeClient.getVideoLoadingProgressView

TODO(wang16): Implement LoadStatus for XWalkUIClient.onPageLoadStopped.

Related BUGs: XWALK-2031
BUG=XWALK-2003, XWALK-2004
[Android] Add preference keys for cordova usage

The new preference keys are for
1. enabling javascript;
2. allow javascript to open window automatically;
3. allow universal access from file origin.

Related to Bug: XWALK-1857
Merge pull request #2142 from wang16/embedding_api_v2

Embedding api v2
[Android] Implement onPageLoadStopped with LoadStatus parameter

Previously, the LoadStatus of onPageLoadStopped is always FINISHED.
Implement it by record the load status when stopLoading() and
onErrorReceived() get called.

BUG=https://crosswalk-project.org/jira/browse/XWALK-2031
Merge pull request #2167 from wang16/load_status

[Android] Implement onPageLoadStopped with LoadStatus parameter
[Tizen] Do not install 'xwalk' binary to 'bin' directory

SSIA. XWalk on Tizen can be launched as dbus service only.
[Android] Simplify check for --app-{local-path,root,url} in make_apk.

The existing check for those parameters is very convoluted and hard to
follow.

Split it into several smaller checks with different error messages for
each of them.
[Android] Add the core internal shell and the test project.

This patch is to add the core internal shell and test code for internal
shell.
All of the codes are modified from the core shell and core test project.
Bump version to 8.36.166.0
Merge pull request #2127 from wuhengzhi/internal_api

[Android] Add the core internal shell and the test project.
Merge pull request #2158 from wang16/preference_for_cordova

[Android] Add preference keys for cordova usage
Merge pull request #2171 from rakuco/separate-checks-for-app-parameters-make_apk

[Android] Simplify check for --app-{local-path,root,url} in make_apk.
Merge pull request #2170 from pozdnyakov/no_xwalk_in_bin

[Tizen] Do not install 'xwalk' binary to 'bin' directory
Bump version to 8.36.167.0
Merge pull request #2067 from wuhengzhi/onReceivedLoadError_test

[Android] Add test case for onReceivedErrorTest().
Revert "[Android] Add test case for onReceivedErrorTest()."

This reverts commit 413b79bfaebd66597ad54a330fa41b103e62cdf2.