[Tizen][Runtime] Fix can not update application.

In the old logic, when we update an application, we
uninstall the old application and install new application,
but when we call
     <pkgmgr_parser_parse_manifest_for_installation>
and  <pkgmgr_parser_parse_manifest_for_uninstallation>
on one process, this process will crash.So we should use
     <pkgmgr_parser_parse_manifest_for_upgrade>
to update.

And we should make a new pkg start point for new app data.

BUG=XWALK-1738
[Tizen][Runtime] Reconstruct some code on pkg helper.

When update have similar work way, I make some shared function.

And I also make some change on uninstall, so that we can see
the step of uninstall clearly.
[Android] Add test case for canGoBack().

This patch is to add test case for canGoBack().
Before load any url, canGoBack should be false.
Load the first url, canGoBack should be false.
Load the second url, canGoBack should be true.
[Android] Add test case for getAPIVersion().

This patch is to add test case for getAPIVersion().
Verify the api version with regular expression.
Merge pull request #2001 from jinbang/test_api_canGoBack

[Android] Add test case for canGoBack().
Merge pull request #1963 from wuhengzhi/getAPIVersion_test

[Android] Add test case for getAPIVersion().
Merge pull request #1976 from CooderIan/fix_app_update

[Tizen][Runtime] Fix can not update application.