[Android] Package xwalk.apk as resource in xwalk_core_library

This is step 2 of getting rid of assets in xwalk_core_library.
To use paks as res/raw, the idea is to generate an xml in res/values
when creating xwalk_core_library, the xml contains a string-array
to describe all the paks will be put in res/raw.
XWalkViewDelegate will try to load the xml first, and intercept
ResourceExtractor if the resource to extract is on the list.

BUG=https://crosswalk-project.org/jira/browse/XWALK-1085
[SysApps] Fixed halfclose handling on RawSockets

Set the readyStatus accordingly and remove the event that
doesn't exist anymore.
[SysApps] Fixed TCPSocket attribute defaults
[SysApps] Update halfclose() handling to match the spec
[SysApps][Android] Handle security exception in Android messaging API.

Add try-catch block to handle sending SMS message exception.
[Runtime] Fix buildbot failure on Windows for PR#1667.
Merge pull request #1689 from tmpsantos/tcpsocket_nits

[SysApps] Fixes small nits on the TCPSocket API
[Tools] Remove some dead code from fetch_deps.py.
[Tools] fetch_deps: Call sys.exit() only at the very end.

Stop making main() sometimes just return a value and sometimes exit()ing
directly: standardize on calling sys.exit() with main()s return for
consistency and also to accommodate adding calls to more DepsFetcher
methods in the future.
Merge pull request #1687 from shawngao5/XWALK-822

[SysApps][Android] Handle security exception in Android messaging API.
Merge pull request #1675 from wang16/pak_res_raw

[Android] Package xwalk.apk as resource in xwalk_core_library
Merge pull request #1688 from shaochangbin/fix-windows-build-issue

[Runtime] Fix buildbot failure on Windows for PR#1667.
[Tools] Add scm-remove-wrong-checkout.py.

This is a helper script intended to be invoked via "gclient recurse".
fetch_deps.py calls it automatically.

It is intended to remove a directory pointed to by a gclient entry when it
is supposed to be a git checkout but contains an svn one (and vice-versa).

The main idea is to prepare the ground for using our v8-crosswalk
repository: since V8 so far has been cloned from Google's SVN repository, if
we then switch to our git repository gclient sync will fail.
Merge pull request #1690 from rakuco/scm-checkout-verifier

[Tools] Add scm-remove-wrong-checkout.py.
DEPS.xwalk: Bring in v8-crosswalk.

Start tracking v8-crosswalk in src/v8. v8-crosswalk is a V8 fork along the
lines of chromium-crosswalk and blink-crosswalk. For now its main purpose is
to have all the SIMD.js optimizations some folks have been working on. Other
than that, it should be the usual V8 we all know.
[Tizen IVI] Enable the platform-specific application installation logic

This patch allows "InstallPackageOnTizen" calls for Tizen IVI, so that
the platform-specific application un/installation logic is enabled there
(e.g. "pkgcmd -l" lists the installed xwalk packages). However
"InstallPackageOnTizen" can work only with Shared Process Model
application installation code path due to user permissions problems
that are not fixed within non Shared Process Model code path.

Considering all above and considering also that we should always use
Shared Process Model on Tizen, it was decided to remove non Shared
Process Model application installation code.

BUG=https://crosswalk-project.org/jira/browse/XWALK-901
[Runtime] Add manifest handler for widget packaged applications.

The CL parses manifest keys required by JavaScript widget interface,
and save mapped key value pairs in ManifestData, so that it can be read
by widget extension.

We can also extend this CL to validate the widget configuration keys in
future.
[Tizen][Runtime] Implement Widget API.

This commit supports Widget API on Tizen(exclude 'preferences' attribute).
The API provides application programming interfaces that enables ability
to access some of the metadata declared in a widget's configuration
document, such as 'name', 'author', 'description'.

Spec:
http://www.w3.org/TR/widgets-apis/#the-widget-interface

The 'preferences' attribute implementation will be provided later.
Merge pull request #1699 from rakuco/pull-v8-crosswalk

DEPS.xwalk: Bring in v8-crosswalk.
[Tizen IVI] Run XWalk with title bar in windowed mode by default.

The following commit makes XWalk run in full screen mode by default
because many parts of the code guarded by OS_TIZEN_MOBILE macro
were included in Tizen IVI, but some code seem to be specific for
Tizen Mobile such as creating the root window and frameless window,
which should be excluded from Tizen IVI.

https://github.com/crosswalk-project/crosswalk/commit/459efb92ed7d39f7b9be0ee99235f9b7f9c28b0b