[Extensions] Fix race condition in EPH, fix flaky CloseNativeWindow

The message filter used by EPH in certain conditions could try to post a
task to UI thread calling EPH. If EPH is destroyed and the message is
still enqueued, we crash.

The MessageFilter was posting a task instead of directly calling in IO
thread because EPH was trying to remove the filter, since we need to
track that message only once. Removing the filter should be called from
the UI thread (which is the "client" thread for IPC::SyncChannel).

This patch makes the code correct, removing the flaky crashes in
CloseNativeWindow browsertest. Next patches will address the TODO item
added by this patch: whether we can use only one MessageFilter.

I split the code this way so we choose whether we apply just this fix to
the current Beta branch or the remaining changes.

BUG=https://crosswalk-project.org/jira/browse/XWALK-153
V8 profiling patch
Fixed the patch_util script
[Android] Fix XWalk crash issue when exiting if remote debugging is enabled.

The root cause is that DevToolsHttpHandlerImpl::Stop has been called before
DevToolsClientHostImpl::InspectedContentsClosing. In that case, the thread
is released and message loop is set to null, so XWalk crashes.

The fix is to change the teardown sequence to destory view first, then shutdown
remote debugging server.

BUG=https://crosswalk-project.org/jira/browse/XWALK-312
Merge pull request #1079 from dp7/master

Merge V8 XDK profiling patch.
Merge pull request #1099 from cmarcelo/eph-fix

[Extensions] Fix race condition in EPH, fix flaky CloseNativeWindow
Merge pull request #1115 from huningxin/remote-debugger-crash-fix

[Android] Fix XWalk crash issue when exiting if remote debugging is enab...
[Android] Add version number tracking for packing tool.

The version number of packing tool is the same as that of XWalk.
With the version, it would be easier to track bugs for packing tool.
Usage: python make_apk.py -v

BUG=https://crosswalk-project.org/jira/browse/XWALK-163
Merge pull request #1087 from junmin-zhu/version

[Android] Add version number tracking for packing tool.
[SysApps] Add Raw Sockets stub

Just the skeleton to serve as base for the interfaces implementation. No API is
currently exposed.
[SysApps] Add the TCPSocket implementation

This is the initial implementation of the W3C's Raw Sockets TCPSocket interface.
It is not complete but is fully functional. Some issues with the spec are being
worked with the standardization body, like the fact that the send() method is
technically sync (although we implement as async always returning true).

A notable missing feature is the throwing of exceptions on invalid parameters,
but the error callback is still called under these circumstances.

We also add the RawSocketObject class. This class is going to concentrate all
the shared code among the different interfaces of the Raw Socket API. Currently only
the ReadyState is shared.
[SysApps] Make it possible to create a TCPSocket from a connected socket

The TCPServerSocket will need to create a TCPSocket from incoming connections.
This patch makes it possible to create an object in the native side first and
handle the identifier to the JavaScript context.
[SysApps] Add TCPServerSocket implementation

Added an incomplete but functional implementation of the
Raw Sockets TCPServerSocket interface.
[SysApps] Add browser tests for the Raw Socket JavaScript API

Tests if the objects are leaky and if the basic functionality like
send and receive data works. These tests are not API conformance tests.
Merge pull request #1059 from tmpsantos/raw_socket3

[SysApps] Raw Socket API implementation
[Android] Add back key support

1 The patch is to add the back key support for the runtime. The
expected behavior when putting on the back button is to go back
to the previous page, but now it results to exit the app.
2 Add a new goBack() interface into XWalkRuntimeView to handle this.
3 Hook the onKeyUp() method in XWalkRuntimeActivityBase and
XWalkRuntimeShellActivity to handle this.

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