Application: Add the check for return value.

The return value of getString() was not being checked.

CID=194038
BUG=XWALK-2928
ApplicationSystem: Initialize |params|.

The local variable was not being initialized in launch_params().

CID=194562
BUG=XWALK-2928
[Application] widget_handler: Add the check for return value.

The return value for GetString() was not being checked.

CID=194059
BUG=XWALK-2928
[Application] package: Initialize |manifest_type_|.

The member varibale was not being initialized in the constructor.

CID=194663
BUG=XWALK-2928
[Application] xpk_package: Add the check for fseek()'s return value and initialzie for |zip_addr_|.

The return value for fseek() was not being checked.
The variable "zip_addr_" was not initialzied in the constructor.

CID=194011
CID=194023
CID=194686
BUG=XWALK-2928
[Application] application_widget_storage: Add the check for return value.

The return value for GetString() and GetBoolean() was not being checked
in SaveConfigInfoItem().

CID=194012
CID=194029
BUG=XWALK-2928
[Android] Replace the raw pointer with scoped_ptr.

The raw pointer |ret_val| will lead to memory leak. Define it with
scoped_ptr.

CID=194532
BUG=XWALK-2928
[Extensions] xwalk_extension_client: Add the check for Get() and Map().

The return value of Get() and Map() was not being checked in
OnPostMessageToJS().

CID=194043
CID=194046
BUG=XWALK-2928
[Android] Add the check for GetHeader().

The return value of GetHeader() was not being checked.
If user agent was invalid, assign it with crosswalk user agent.

CID=194058
BUG=XWALK-2928
[Runtime] xwalk_browser_main_parts: Initialize |extension_service_|.

The member variable was not being Initialized in the constructor.

CID=194750
BUG=XWALK-2928
[Runtime] xwalk_runtime_features: Initialize |experimental_features_enabled_| and |enabled|.

The member variable was not being initialized in the constructor.
The variable in the struct was not being initialized.

CID=194645
CID=194651
BUG=XWALK-2928
[Runtime] runtime_download_manager_delegate: Add the check for
CreateDirectory().

The return value of CreateDirectory() was not being checked in
GenerateFilename().

CID=194047
BUG=XWALK-2928
[Tizen] SecurityPolicy classes rename and move

This patch renames:
- SecurityPolicy to ApplicationSecurityPolicy,
- SecurityPolicyCSP to ApplicationSecurityPolicyCSP,
- SecurityPolicyWARP to ApplicationSecurityPolicyWARP,
- common/security_policy.h to browser/application_security_policy.h,
- common/security_policy.cc to browser/application_security_policy.cc.
Merge pull request #2631 from wuhengzhi/xwalk_2928

Fix the coverity issues
Merge pull request #2649 from sstolinski/SecurityPolicy

[Tizen] SecurityPolicy classes rename and move
step 1: build in shared_library mode
Install xwalkctl and xwalk-launcher into %{libdir}/xwalk.

Now that we are building in shared_library mode, those binaries need to
be in the directory above lib/*.so for them to work correctly.

The xwalk.in script which had been unused since commit
08f95caf ("[Tizen] Do not install 'xwalk' binary to 'bin' directory")
has been repurposed to act as a wrapper for those two binaries.
step 2: Split crosswalk into two packages.
Install separate manifest files for each package.
Let's try this: only install libxwalk_backend_lib.so once.