[Android] Fix packaging tool can't work on python3.0+.

1. Change print to print function.
2. Change "except" expression for try..catch
3. Add decode("utf-8") for output of subprocess
4. Change "filter" and "file" uncompatible usage.
5. Move ant.py and md5_check.py into xwalk, which request modification.

BUG=https://crosswalk-project.org/jira/browse/XWALK-766
[Android] Add support for setting version codes in apk

Add support for specifying android version codes, which is necessary
for publishing multiple apk to google play. Follows the recommendation
for ABI in
http://software.intel.com/en-us/blogs/2012/11/12/how-to-publish-your-apps-on-google-play-for-x86-based-android-devices-using

Added some tests to make_apk_test and published x86 and arm crosswalk
apk to google play.

Addressed review comments
Merge pull request #1469 from junmin-zhu/version

[Android] Fix packaging tool can't work on python3.0+.
Merge pull request #1423 from rscohn2/master

[Android] Add support for specifying android version codes
[Android] Minify and obfuscate the javascript and css.

This patch is to minify and obfuscate the javascript and css
files before doing packaging.
Integrate the yui compressor with the packaging tool.
Yui compressor was gotten from http://yui.github.io/yuicompressor/
The license is BSD.
Merge pull request #1485 from wuhengzhi/compress_js_css

[Android] Minify and obfuscate the javascript and css.
Bump version to 5.32.79.0
[Mac] Fix build
[Application] Handle multiple attempts to terminate an application

Before this change multiple invokes of Application::Terminate() method broke
the app termination logic in case "OnSuspend" event handler was registered for
the app. Fixed now by introducing a dedicted "IsTerminating" check to
Application::Terminate() method.
Merge pull request #1542 from pozdnyakov/Avoid_app_double_termination

[Application] Handle multiple attempts to terminate an application
DEPS.xwalk: Roll ozone-wayland (0c4f175..d140a78).

d140a78 Dispatcher: Poll only for read notifications.
1b49869 Missing Changes: Return correct VSyncProvider.
37a9e2c Cleanup: Remove obsolete code related to frame callbacks.
2e2f1aa DisplayPollthread: Poll only for reading Wayland events.
0fcc8a5 Initial VSync support and ensure we flush Wayland display every
        frame.

This should help with the slow rendering issues that have been reported (I
couldn't find any JIRA issues about that though).
Merge pull request #1543 from rakuco/oz-wl-roll

DEPS.xwalk: Roll ozone-wayland (0c4f175..d140a78).
Bump version to 5.32.80.0
[Tizen] Display the top window when resume application from background.

For XPK applications with multipages, whenever a new page(window) is
created, it is saved as a root window inside current Crosswalk. In other
words, a list of root windows are created when running such kind application.

While Tizen app framework resumes the root window with stacking order
from bottommost(first) to topmost(last). As a result, the bottommost page is
showed when resume from background.

This PR provides only one root window per application, and all application
pages(windows) belong to this root window.

BUG = https://crosswalk-project.org/jira/browse/XWALK-900
Merge pull request #1541 from poussa/mac-13

[Mac] Fix build
Merge pull request #1534 from shaochangbin/resume-xpk-app

[Tizen] Display the top window when resume application from background.
Bump version to 5.32.81.0
[Android] Replace the remote url with the local url.

This patch is to replace the remote url with local url.
The test case about "testEnableRemoteDebugging" will be timed out if
the remote url can not be accessed. So replace the remote url with
local url.
Merge pull request #1546 from wuhengzhi/replace_remote_url

[Android] Replace the remote url with the local url.
[Application] Add permission storage logic

Permission storage: permissions should be stored in ApplicationData and
eventually the database, so now we have setter and getter in the
ApplicationData class and the actual db operations are done inside
ApplicationStorageImpl. While, there are still some parts missing, like
the session storage which should also be implemented in the Application
calss.