[Android] Add test case for getUrl().

This patch is to add test case for getUrl().
Open a url, get the url on ui thread, compare it with the expected.
Adapt user check to multi user architecture.

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

Change-Id: I2e38c4582e7b0bf1a024ffdad22d1bd14056bb11
Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
[Android] Add test case for getTitle().

This patch is to add test case for getTitle().
Open a url, get the title on ui thread and compare it with the expected
result.
[Android] Fix some PEP8 errors.

Summary of the types of errors:
* E128: Bad indent
* E203: whitespace before ":"
* E222: multiple spaces after operator
* E231: missing whitespace after operator
* E251: unexpected spaces around keyword / parameter equals
* E302: Two blank lines between definition of runtions.
* E501: line too long (80 > 79 characters)
* E711 comparison to None should be "if cond is None:"
[Android] Apk will crash when set ‘undefined’ arch option

To filter out invalid values for option "arch".

BUG=https://crosswalk-project.org/jira/browse/XWALK-1618
[Tizen][Runtime] Fix xwalkctl can not print right encode for string

g_print will convert the encoding of string according to
locale, but unfortunately the default locale is "C", and
g_print will convert string to ASCII for print when the
terminal might use ut8 encode.

To slove this problem, we can set empty locale on xwalkctl
start, and the program will get locale from environment
variables.

And we can export environment variable
like : export LC_ALL="zh_CN.utf8"
according to the actual situation of your terminal.
[Tizen] Enable NaCl/PNaCl for 32bit build

Summary of changes:
============
* Enable nacl build and packaing in crosswalk.spec
* Unify GetXWalkDataPath for Tizen (service and non-service)
* Add native_client in source tarball

How to test:
============
On linux
$ cd <nacl_sdk_dir>/pepper_canary/example
$ TOOLCHAIN=pnacl make serve

On Tizen device or VM:
$ xwalk http://<your_linux_host>:5103/demo/flock/index.html?tc=pnacl

BUG=XWALK-1339
[Tizen] Add installer update signal and refactored package installer related code

To support "update" signal, a new "--update" argument is added to
xwalk-pkg-helper. The PkgInstaller is also refactored, original
install/uninstall methods are made internal, the public
install/uninstall/update methods will handle these signals sending.

As the package helper is only used by Tizen, remove Linux build for
it. Also put Tizen package insaller related functions to an
PackageInstaller
class, and these service mode checkers are removed from
ApplicationService.

BUG=XWALK-1600
[Tizen] Fail to launch the "Webapi/Runtime" component

The issue occurred because EP file descriptor was attempted
to pass before is was initialized (before EP actually started).

BUG=XWALK-1432
Merge pull request #1947 from yeyuyinjie/fix_xwalkctl_encode

[Tizen][Runtime] Fix xwalkctl can not print right encode for string
Merge pull request #1933 from seanlong/tizen_update_signal

[Tizen] Add installer update signal support
[Android] Post onRsourceLoadStarted on UI thread

The shouldInterceptRequest method which invokes onRsourceLoadStarted
is called from IO thread, and onResourceLoadStarted must be called
from UI thread, since XWalkResourceClient.onLoadStarted is called
by it in chain.

BUG=XWALK-1695
Bump version to 7.35.138.0
Merge pull request #1941 from halton/make_apk

[Android] Fix some PEP8 errors.
Merge pull request #1934 from wuhengzhi/getTitle_test

[Android] Add test case for getTitle().
Merge pull request #1938 from pozdnyakov/XWALK-1432

[Tizen] Fail to launch the "Webapi/Runtime" component
Fix processing of the Manifest 'start_url' member

Fix processing of the Manifest 'start_url' member
after resolving an ambiguousness in the spec
https://github.com/w3c/manifest/pull/200/files

From now 'start_url' manifest key is an application
entry point.

So far 'start_url' cannot contain only a relative URL
(the resulting URL is constructed using the path to
the manifest file as a base URL:
http://w3c.github.io/manifest/#dfn-steps-for-processing-the-start_url-member)

External URLs handling should be clarified in the spec
further.
Merge pull request #1956 from pozdnyakov/start_url

Fix processing of the Manifest 'start_url' member
Merge pull request #1909 from PeterWangIntel/PR1618

[Android] Apk will crash when set ‘undefined’ arch option
Merge pull request #1914 from halton/nacl_tizen

[Tizen] Enable NaCl/PNaCl for 32bit build