[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
[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.
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
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"
[Android] Remove a duplicated CommonResources java file

Remove one CommonResources.java and keep the one contained in
org.xwalk.core.xwalk.util package.
Merge pull request #1500 from gaochun/csp

[Android] CSP support.
Merge pull request #1611 from hmin/remove-duplicated-file

[Android] Remove a duplicated CommonResources java file
[Android] Support package file name including space character.

If package file name includes space character, this character
will be replaced with '_', according to the new user requirement,
blank character should be supported, this fix resolves this issue
by removing the space from the invalid characters.

BUG=https://crosswalk-project.org/jira/browse/XWALK-1006