[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.
[Android] Make xwalk_core_library compilable on Windows

On windows, python is python.bat or python.exe.
Directly exec python will fail.
To detect which extension is used. Add condition
and "where" exec in precompile.xml to determine
the final extension string for python.

BUG=https://crosswalk-project.org/jira/browse/XWALK-335
[Tizen][Runtime Model] Using the xwalk logo image when icons are not given in manifest.json

The application button with default xwalk logo image will be placed on
home screen in Tizen if the icons field is not given in manifest.json.

BUG=https://crosswalk-project.org/jira/browse/XWALK-124
Bump version to 3.31.38.0
Merge pull request #1119 from wang16/core_pre_compile

[Android] Make xwalk_core_library compilable on Windows
Bump version to 3.31.39.0
Bump version to 3.32.39.0

This is all-in-one patch based on Chromium 32.0.1700.14, check each
commit at https://github.com/halton/crosswalk/commits/master_1700_14
Merge pull request #1141 from halton/all_in_one_32_0_1700_14

Bump version to 3.32.39.0
[Extension] Adding a Crash Extension and a crash "demo"
[Extension] Gracefully handle an ExtensionProcess crash.

This patch enables us to gracefully handle a crash from
ExtensionProcess. We use XWalkExtensionProcessHost::OnChannelError
since we can't really rely on XWalkExtensionProcessHost::OnProcessCrashed.
See a more complete explanation about this on the end of this commit message.

It is safe to rely on XWalkExtensionProcessHost::OnChannelError
since this function is called just before
BrowserChildProcessHostImpl::OnChildDisconnected gets called.
OnChildDisconnected() would, in turn, be the function that would
call our OnProcessCrashed(). For more information, please refer to
ChildProcessHostImpl::OnChannelError() from child_process_host_impl.cc.

This patch also adds the interface XWalkExtensionProcessHost::Delegate,
which now is implemented by XWalkExtensionService.
XWalkExtensionProcessHost::OnChannelError() calls then
Delegate::OnExtensionProcessDied().

For documentation reasons, I will elaborate on what happens when not
using zygote, which is the case of EP.
GetTerminationStatusImpl() from base/process/kill_posix.cc ends up
calling waitpid() with WNOHANG. If the extension process isn't ready
to reply its termination status by then, we won't block while waiting
for it and that function will return TERMINATION_STATUS_STILL_RUNNING
to BrowserChildProcessHostImpl::OnChildDisconnected(). When that happens,
OnProcessCrashed() ends up never being called. That is not the case
for OnChannelError(), thus we use that as our hook.
Using zygote would put the necessary infra-structure in place,
but it would also bring more than what we currently need.
[Runtime] Fix RuntimeContext ownership and unify its creation

On Android RuntimeContext used to be a singleton which is wrong as content::ContentBrowserClient lifetime should be equal to the duration of the browser session, meaning its creation&deletion should be controlled by BrowserMainLoop.

This patch unifies the creation of RuntimeContext between android and others removing ugly '#ifdefs' and unneeded difference in the code path.
Merge pull request #1123 from jeez/crash-handling

[Extensions] Handle ExtensionProcess crashes gracefully
[DBus] Add PropertyExporter and DBusManager classes

This commit bootstraps the xwalk/dbus directory with two classes we
intend to use when implementing the '--run-as-service' mode in Linux.

The 'DBusManager' is a convenience class that packages the creation of
the DBus thread and the bus connection. There need to be only one of
those for the whole Crosswalk, so it should be passed around for the
subsystems that need it.

The 'PropertyExporter' class is a partial implementation of a helper
class that exports the 'org.freedesktop.DBus.Properties' interface for a
certain 'dbus::ExportedObject'. It's interface is still incomplete, and
at the moment it will be focused on covering our use cases for
'--run-as-service'. Chromium have a infrastructure for dealing with
properties but only on the client-side, this class adds the server side.

Unit testing infrastructure, as well as basic sanity tests were
added. With these bootstrapped is easy to add new tests later. The new
target 'xwalk_all_tests' was added to include this module in the build
system.
Merge pull request #1142 from cmarcelo/xwalk-dbus

[DBus] Add PropertyExporter and DBusManager classes
Bump version to 3.32.40.0
[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
[Tizen] add the 'gst-plugins-atomisp-devel' buildrequires to spec

chromium needs the header and lib files exported from this package to drive the
camera device on Tizen 2.1 hardware platforms.

BUG=XWALK-176
[Android] Correct activity name in core shell debug script

It's not synced with the activity name in
runtime/android/core_shell/AndroidManifest.xml
[WiDi API] Destroy XWalkView instance when presentation content is closed
The XWalkView instance should be destroyed once the presentation content is closed.
Otherwise, the resources allocated would be leaked. For example, zombie pages would
be listed in chrome web inspector (chrome://inspect) after the presentation content gets
closed by calling window.close API.

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