[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.
[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
[Tizen][Runtime] Enable CSP supporting for WGT package.
The xwalk runtime should support CSP for Tizen legacy apps when setting
it using <tizen:content-security-policy> tag in WGT config.xml.
Revert "[Android] Enable multiple threads for rasterization"

This reverts commit 7eb4b60ac303d6916958c3b400bd9863a848040b.

Crosswalk will be crashed in DEBUG mode since there is a regression happened
in Chromium 34 if multiple threaded rasterization is enabled.

Conflicts:

	runtime/browser/xwalk_browser_main_parts_android.cc
Merge pull request #1589 from ShDavidliu/Update

[Android] Fix the issue of unsupported app.launch.local_path 'http.html'...
Merge pull request #1609 from hmin/revert-mt-rasterization

Revert "[Android] Enable multiple threads for rasterization"