[Android] Support permissions for Java external extensions

Following changes are made:
1. merged external extensions permissions to Android manifest file
2. added a unit test about this feature
3. fixed empty extension_name issue caused by redundant separators

BUG=https://crosswalk-project.org/jira/browse/XWALK-160
[Android] Add the test case about getVersion.

This patch contains the test about getVersion in shared and
embedded mode. It's for the runtime client.
Get the version, confirm it's validity by regular expression.
Remove dependency between XWalkManifestReader and XWalkView.

XWalkManifestReader is in org.xwalk.runtime package, it's on higher
layer than XWalk core, and XWalkManifestReader should not be awared
by XWalk core. So remove the XWalkManifestReader reference from the
XWalkView class.

BUG=https://crosswalk-project.org/jira/browse/XWALK-149
[Android] Fix the failed test case about testPauseAndResume.

Due to the rebase to v32, the function "onActivityPause" and
"onActivityResume" was deleted from ContentViewCore.java.

The fix is to implement the onPause and onResume by another
function interfaces.

BUG=https://crosswalk-project.org/jira/browse/XWALK-351
[Android] Only allow to intercept navigation for main frame and subframe

The interception for resource request should be restricted to main frame
and sub frames, so that the page loading state change events, e.g.
onPageStarted and onPageFinished, are triggered only for main frame and sub
frame instead of each kind of resources.

BUG=https://crosswalk-project.org/jira/browse/XWALK-306
[Android][Tizen][SysApps] Change the sysapps API namespace for device capabilities

Change the sysapps API namespace from navigator.* to xwalk.experimental.*
[Tizen] Bump chromium-crosswalk to incorporate the camera integration

To support the W3C 'Media Capture and Streams'
[Mac] Fix the build

[chromium-style] Complex class/struct needs an explicit out-of-line destructor.
[chromium-style] Classes that are ref-counted should have explicit destructors that are declared protected or private.
[chromium-style] Overriding method must have "virtual" keyword.
[Runtime Model] Save system events into sqlite database.

From [1], System events are events sent by the system, a system event
can wake up a terminated application. If user want a system event has
the capability to wake up, then he/she should add listener to that event
in the main document, listener added in other document won’t have such
capability.

To implement this, system events information that registered in the main
document should be saved into system database during installation time.
Whenever a system event comes to event router, the router will check
whether the event is supported by the specified application. If yes,
router will dispatch the event to application, for example, launches a
terminated application and executing onLaunch callback.

This PR is the SQLite implementation to save system event information
into database. It creates a table named 'registered_events' in Crosswalk
application datbase file('applications.db'). The table contains two
columns for each item, (id, event_names). It also provides
some Getter and Setter functions to read/write/remove item(s) from the
database.

Reference:
[1] https://docs.google.com/document/d/1cDb54Cs1wjbNQPb7W44_4aj1bzPI9dqsb2aRDkZmDTE/edit?pli=1#heading=h.v1w5rrn37icm
[Runtime Model] Packaging the XPK package generator in Linux & Windows
xwalk zip

Deliver a XPK generator tool for web application developer to package
the xwalk XPK package.
Fix issues caused by PR1121

-Removed unneeded assertion in browser main parts for Android
-Fixed file names order in gyp file
Merge pull request #1165 from pozdnyakov/Fix_after_1121

Fix issues caused by PR1121
Merge pull request #1136 from takethathe/make_xpk

[Runtime Model] Packaging the XPK package generator in Linux & Windows
Merge pull request #1162 from jchen10/bump

[Tizen] Bump chromium-crosswalk to incorporate the camera integration
Merge pull request #1150 from wuhengzhi/pauseResume

[Android] Fix the failed test case about testPauseAndResume.
Merge pull request #1164 from poussa/mac-compile-10

[Mac] Fix the build
Remove the V8 patch. XDK has now its own repository and branch.

We prefer to not have such patches in Crosswalk upstream and would
like to see it coming from Chromium upstream at the next rebase.
Merge pull request #1090 from shaochangbin/system-event

[Runtime Model] Introduce sqlite table to save system events.
Merge pull request #1168 from darktears/remove-v8

Remove the V8 patch. XDK has now its own repository and branch.
Remove the patcher script and its dependencies.

We don't need it anymore as the V8 patch for the XDK has been removed.
We can revert this patch if one day in the future we need that.