[SysApps][Android] Fix several issues on messaging api

1) Correct addEventListener from "messaging" to "messaging.sms".
2) Each PendingIntent should have different requestCode to identify itself. If
using same code, the extra data field of PendingIntent instance will be replaced
by the new one. Then system calls the intent callback function only once.
3) In unit test page, move the verification steps into send.then
callback instead of calling after send function.

BUG=https://crosswalk-project.org/jira/browse/XWALK-940
[Extension] Add API for Check API Access Control

This API is for external extension developer. The API need to be called in the
implementation of each exported API in C or C++ code. For C extension
implantation, header file "public/XW_Extension_Permissions.h" should be
included. For each API that need access sensitive data, developer should call
CheckAPIAccessControl for API control. For C++ extension implantation, header
file "xwalk/common/xwalk_external_extension.h" should be included.

The basic flow of API access control is as below:
1.when render process execute a JS API which need access sensitive data
of device, render process send a message to extension process
2.in extension process API's implemetation, it should call
  checkAPIAccessControl, which will call PermissionsDelegate
  (which is in also extension process).
3. extension process send a message to browser process.
   XWalkExtensionProcessHost -> XWalkExtensionProcessHost::Delegate
   (which is XWalkExtensionService) -> XWalkExtensionService::Delegate
   (which is XWalkAppExtensionBridge) ->xwalk::application::
   ApplicationService::CheckAPIAccessControl().
[Android] Add CSP support.

Enable CSP control for packaged app by parse CSP content from
manifest.json and adding the CSP content into the http response
header.

Bug=https://crosswalk-project.org/jira/browse/XWALK-692
[Android] Add test for CSP support.

The test set the manifest field script-src with 'self' or
'unsafe-inline' values to disallow/allow change page titles
with the diferent CSP settings.

For embedded client test:
1. install XWalkRuntimeClientEmbeddedShell.apk
2. python build/android/test_runner.py instrumentation \
--test-apk=XWalkRuntimeClientEmbeddedTest -v -f \
testCSP

For shared client test:
1. install XWalkRuntimeLib.apk
2. install XWalkRuntimeClientShell.apk
3. python build/android/test_runner.py instrumentation \
--test-apk=XWalkRuntimeClientTest -v -f testCSP
[Android] Fix the issue of unsupported app.launch.local_path 'http.html'.

There is issue if the app.launch.local_path is defined as the specific
'http.html', in the manifest parser, it is differentiating the web url
from local_path via 'http', this fix is resovling this issue by using
'http:' as the differentating keyword.

BUG=https://crosswalk-project.org/jira/browse/XWALK-985
[application] The application termination via DBUS should consider 'OnSuspend' event handlers.

The application DBUS proxy should consider the fact that an
application might be still running even after its "Terminate"
method is called (if termination mode is 'Normal' and the app
contains 'OnSuspend' handlers) so it still should listen to
'owner' changes. Besides, the DBUS client should be able to
enforce termination - might be needed for example if 'OnSuspend'
event takes too long time and the User wants to stop the app
immediately.
This patch exports a new "ForceTerminate" DBUS method from
application proxy object and modifies its termination logic
accordingly to the requirements described above.
Sync gyp_xwalk with the current contents of gyp_chromium.

gyp_chromium underwent a large amount of changes since M32 due to the work
on GN upstream. This broke the Android build (gyp_xwalk did not even detect
it was supposed to set up an Android build in the first place).

I have basically copied gyp_chromium on top of gyp_xwalk and applied the
relevant changes after comparing gyp_xwalk with M32's gyp_chromium, with the
addition of a change that does not run GN when using the make generator (as
a temporary measure to keep the Tizen build working while we find a better
solution).
Merge pull request #1599 from rakuco/sync-gyp_xwalk

Sync gyp_xwalk with the current contents of gyp_chromium.
gyp_xwalk: Add another Tizen workaround.

find_depot_tools looks for Breakpad and other dependencies not present in
the Tizen chroot and not needed for the Tizen build.
Merge pull request #1600 from rakuco/gyp_xwalk-tizen-workaround

gyp_xwalk: Add another Tizen workaround.
[Extension] Added APIs for permission-function register.

The runtime permission mapping is registered by extension which
implements some specific API, for example: "bluetooth" ->
"bluetooth.read, bluetooth.write, bluetooth.management" Whenever there
comes a API permission request, we can tell whether this API is
registered, if yes, return the according permission name.
Merge pull request #1579 from mbbill/permission_4

[Application] [Extension] Added two permission APIs.
[Android] Fix the missing files issue in xwalk_core_library of M34

After rebasing to M34, xwalk_core_library needs several additional Java
source files to pass the build.

BUG=https://crosswalk-project.org/jira/browse/XWALK-1019
Fix the build after c3f73de.

Usage of the `base' namespace for some data types is required after the M34
rebase.
Merge pull request #1606 from rakuco/base-namespace

Fix the build after c3f73de.
[SysApps] Fix crashing unit test

Now views::CreateDesktopScreen() expects supported scales factors to be set
beforehand. We can set anything here, since it is just for testing.
Roll the DEPS to involve new patches in Chromium

Patches of PR #115 in Chromium were missed during rebase.
It causes the crash in xwalk.
Merge pull request #1603 from xingnan/rebase-master

Roll the DEPS to involve new patches in Chromium
Merge pull request #1607 from tmpsantos/display_info_provider_test_fix

[SysApps] Fix crashing unit test
Merge pull request #1598 from pozdnyakov/app_termination_via_dbus

[application] The application termination via DBus