[PATCH] fixed xwalk rewritting --use-gl option

Previously if user specified --use-gl option, it was ignored.

Signed-off-by: Vasyl Vavrychuk <vasyl.vavrychuk@globallogic.com>
Packaging: re-enable XDG_Shell for Tizen
The Weston has been upgraded to 1.5 and XDG_Shell basics for Weston 1.5 have been in oz-wl.
So we think it's time to re-enable it now. Meanwhile some related issues are under fixing. More changes will come in.
[Android] Enable the feature for onRequestFocus.

This patch is to enable the feature for onRequestFocus().
Call onRequestFocus() in activateContents().
[Android] Add test case for onRequestFocus.

This patch is to add test case for OnRequestFocus().
[Android] Keep package path for the generated java files

It will be convenient for IDE like eclipse to debug for
those source files.
Backendlib

This change provides backend installer and library for tizen platforms installer.
This enables user to run pkgcmd (actually pkgcmd.real by now) with option described below
to perform installation/uninstallation task.

About implementation:
 - global instalaltion of app is to be done in other issue/PR.
 - reinstall option will be fixed in separate issue/PR,
 - TODOs in wrapper script will be fixed after pkgmgr being fixed,
 - Calculating app size (part of backendlib) will be dispatched in separate issue/PR,
 - some refactoring about pkgid (it was needed),
 - xwalkctl has some new options for tizen build,
 - backend installer gets pkgid for uninstallation, not app_id (so xwalkctl handles both now),

(non global installation) -> pkgmgr-server need fix to switch user, xwalkctl needs hanlde root
(basic) -> installation/uninstalltion, amd-related options need investigation

TASK=XWALK-1731

[Status]
 --install           - works
 --uninstall         - works
 --reinstall         - fails
 --clear             - (not tested)
 --move              - (not tested)
 --getsize           - (not tested)
 --getsize-type      - (not tested)
 --list              - works
 --show              - works
 --app-path          - works
 --check             - (not tested)
 --kill              - (not tested)
 --descriptor        - (not tested)
 --quiet             - works

[Verification]
 - download apps [wgt,xpk] on device,
 - run:  cp /usr/dbspace/.appsvc.db /home/app/.applications/dbspace/
 - run:  chown app:users /home/app/.applications/dbspace/.appsvc.db
 - (use quiet option for all commands)
 - run: pkgcmd.real -i -t wgt -p ${package} -q #installation should success
 - run: pkgcmd.real -d -n ${id} -q #uninstallation should success
 - run: pkgcmd.real -l -t ${type} #rpm, xpk, wgt apps should displayed
 - run: pkgcmd.real -s -n ${id} -t ${type} #information should be displayed

Change-Id: I1052edd5c84cb2e5b9218b255fe4214285d396e5
[Tizen][Runtime] Enable hosted app support on Tizen.

On Tizen, a web application use <tizen:content> to set entry page will be
recognized as hosted app. This patch will enable this feature in Crosswalk
runtime.

BUG=XWALK-1492
Remove InstallWarnings
DEPS.xwalk: Roll v8-crosswalk (0bb343f->6264ffa)
Bump version to 9.38.199.0
[REG] Fixed NaCl loading issue introduced by rebase.

According to the upstream change 01167110, the trusted plugin is
linked into the renderer directly instead of loading as a module
in runtime, and the ppGoogleNaClPlugin module has been removed;
so we need to change the plugin loading codes in
XWalkContentClient::AddPepperPlugins.
Cannot launch application from command line

The problem was in the app start URL generating.

BUG=XWALK-2490
Bump version to 9.38.200.0
Enable launching packaged application

Now it is possible to launch an app like

'xwalk path/to/some.xpk'

The package is unpacked to a temporary folder
within '.config/xwalk/applications'.
Bump version to 9.38.201.0
Reinstall option of backend

This commit adds "-r" option for xwalkctl.
xwalkctl may be called with this option by package manager to reinstall app in specific way may be implemented later.

For now, we need just to signal pkgmgr that reinstallation fails to prevent hanging requesting process.

TASK=XWALK-2458
[Android] Add xwalk_app_template_apk to xwalk_app_template's dependency

xwalk_app_template_apk is to verify the correctness of xwalk_app_template
before creating the package of it.
Set the dependency although, xwalk_app_template doesn't rely on
xwalk_app_template_apk to build.
Clarify the application start URL fetching

This patch introduces a clear separation between
XPK and WGT code paths for fetching start URL.

It also removes deprecated and unneeded EntryPoints
flags from the Application class.
[Android] Use reflection layer in xwalk core for runtime usage

As now there is reflection layer between xwalk core and xwalk
core internal, there is no need to use the one between runtime
and runtime client for runtime usage.

After this patch, most facilities to support shared mode will be
moved from runtime to xwalk core. Besides, runtime_java will be
merged into runtime_client_java.
XWalkRuntimeLib.apk will keep the name unchanged, but its package
will be org.xwalk.core which was org.xwalk.runtime.lib previously.

TODO: Extension is still using reflection in runtime layer which
will be refined in future commits.
[Android] Move extension manager out to runtime layer

Extension in runtime layer (XWalkExtensionClient) was
directly using XWalkExtensionAndroid, which has core
internal dependency.
It should be based on the extension provide by xwalk
core.
Move all the classes for runtime extension to runtime
client package and remove the reflection layer which
is not between XWalkExtension and XWalkExtensionInternal.