[Extensions] Add support for persistent callback listener

This is going to be the base of the EventTarget implementation. It is
important to remove the listener at some point otherwise the object will
leak.
[Extensions] Add browsertests for the persistent callback listener

The test implements a heartbeat which works in a similar way of an EventTarget.
The callback is set only one and gets called multiple times.
[Extensions] Remove development debug statements

These debugging statements were useful during development, but now
as we are feeling confident that everything should be working, they
can be removed.
Update application_service.cc

I suppose this place should be 'false' because actually the Installation is 'failed' due to 'it's already installed', isn't it?
[Android] Implement the method of OnReceiveHttpAuthRequest() in runtime core
          and update the http authentication database interfaces.

1. Some web page has the requirement of http authentication, support
   this requirement by providing the method of OnReceiveHttpAuthRequest().
2. Update the http authentication database interfaces by removing the previous
   method of getInstance() and directly calling the constructor function
   of the class HttpAuthDatabase.

BUG=#788
Merge pull request #1045 from yongsheng/master

[Android] Disable the unit test for DeviceCapabilities.
Merge pull request #1039 from vcgomes/remove-development-debugs

[Extensions] Remove development debug statements
Merge pull request #1038 from tmpsantos/persistent_callback

[Extensions] Support for persistent callback
[Tizen] Enable pinch.

After rebasing 31.0.1650.12, use_xi2_mt is set to 2 by default. However, we use
XInput2.1 on Tizen 2.1, so we can not use use_xi2_mt that is for XInput2.2.

enable_xi21_mt that is introduced by Hongbo Min is exclusive to use_xi2_mt.

BUG=https://crosswalk-project.org/jira/browse/XWALK-58
[Android] Make prepare_r_java.py an executable

IDEs like eclipse are unable to run the program as an external builder
if they are not marked executable.

Also, use copy2 instead of copyfile to preserve 'x' bit in file mode.
[Android] Add eclipse build support for xwalk_core_library

Eclipse is a popular IDE for android development. So it's useful
to have this supported out of the box.

This change adds the .project, .classpath files required by Eclipse
for importing.
Add a patcher script to apply patches

1. Patcher is a helper to apply patches to certain repos.
2. It runs in hooks of DEPS after fetching deps successfully.
3. patch.cfg is used to config the patch path and target repo path.
4. These python scripts origin from CEF project.
[Tizen] Device motion/orientation API

Chromium has device motion/orientation API support, but not on Tizen.
To leverage chromium's code, an xwalk::DataFetcherSharedMemory object
is created to bridge xwalk and chromium. This object acts as a sensor
event listener of xwalk and writes sensor data into chromium's shared
memory.

SPEC: http://www.w3.org/TR/orientation-event/
Merge pull request #1051 from xingnan/patcher

Add a patcher script to apply patches
[Android] Destroy the native resource of XWalkView

Each XWalkContnet object owned by XWalkView has its own native counterpart, we
need to cleanup the native resource when an XWalkContent object is requested to
be destroyed, e.g. an activity is destroyed.

This fix is to add 'destroy' method to XWalkContent for this purpose.

BUG=https://github.com/crosswalk-project/crosswalk/issues/998
[Android] Add loadAssetFileAndWaitForTitle and apply in XWalkCoreTest cases

Instrumentation tests may fail because the titles may be verified
before they are changed. This commit introduced a new interface named
"loadAssetFileAndWaitForTitle" to wait until the title be changed.

BUG=#984 (Partially)
[Android] Handle clearCache message in renderer

This fix is to handle XWalkViewMsg_ClearCache IPC message to clear
cache.

BUG=https://github.com/crosswalk-project/crosswalk/issues/996
[Android] Refactor the python script to prepare xwalk core library

Use list of files/directories to avoid duplicated code for copying.
[Android] Refactor the code for instrumentation tests.

Currently so many source codes are duplicated and hard to maintain.
Need to refactor them and share common code. This fix is to share
all common code in utils so that instrumentation tests for embedded
and shared modes can share as many code as possible.
This is the second step. The next one is to share the code for core
tests.

BUG=https://crosswalk-project.org/jira/browse/XWALK-95
[Android] Use loadAppFromManifest if a manifest.json is used for a web app.

Add loadAppFromManifest support for web app. If web app is packaged with
manifest, directly use loadAppFromManifest API to load app.
Because native manifest parser only supports original proposal
"app:launch:local_path", manifest related test cases are modified.
When the specfication for manifest is stable, will revisit these test
cases and native manifest parser.

BUG=https://crosswalk-project.org/jira/browse/XWALK-100?filter=10007