[Android][Extension] Fixed getCPUInfo algorithm for device capabilities

The original algorithm is not accurate because it ignores the time spent in iowait,
irq and softirq. Now the result is the same as `top` shows.
[Runtime] Add CSP parsing handler for manifest.json

The CSP information will be parsed and stored in ApplicationData so that
other components can use the structured information instead of the raw
data from manifest.json.

The specification can refer to the W3C Content Security Policy 1.0 spec:
https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-1.0-specification.html
[Application][Linux] Convert tools to C++

We don't have strong reasons to keep them a C, so to keep consistency
and make use of our lint checks, moving those to C++.

We still use gdbus here (instead of src/dbus) due to it's convenient
sync API (for the case of the tools, this API is OK) and to avoid
needing to integrate appcore/aul with base::MessageLoop.
[Android]  Implement the user agent feature in runtime.

  This patch provides the capability to customize the user agent for
Android port, it implements the user agent related methods in the native
layer and in the java layer including the methods of getting the user agent,
setting the user agent and others. In addition, the related test cases are added.

BUG=https://crosswalk-project.org/jira/browse/XWALK-595
[Android] Fix app packaging tool can't return its version.

The issue is due to the wrong directory it's stored. Put
VERSION file in the root target directory. Besides, a new test
case is added to check this issue.

BUG=https://crosswalk-project.org/jira/browse/XWALK-737
[Tizen]Remove the openssl BuildRequires

Chromium has its openssl in thirdparty, so there should be no dependency on
Tizen's openssl
Merge pull request #1381 from yongsheng/fix737

[Android] Fix app packaging tool can't return its version.
Add personal name into the AUTHORS.
[Android] Update the UI margin of http auth dialog.

  Adjust the margin of http authentication dialog.

BUG=https://crosswalk-project.org/jira/browse/XWALK-763
Merge pull request #1109 from itlodge/Fix_CPUInfo

[Android][Extension] Fixed getCPUInfo algorithm for device capabilities
Merge pull request #1401 from ShDavidliu/author

Add personal name into the AUTHORS.
Merge pull request #1400 from ShDavidliu/UI

[Android] Update the UI margin of http auth dialog.
Merge pull request #1276 from ShDavidliu/UserAgent_f

[Android]  Implement the user agent feature in runtime.
Merge pull request #1392 from cmarcelo/change-tools-to-cpp

[Application][Linux] Convert tools to C++
[Application][Linux] Convert xwalk_launcher_tizen.c to C++

Missed from last change. Also should fix build break in Tizen build.
Merge pull request #1402 from cmarcelo/convert-tizen-cpp

[Application][Linux] Convert xwalk_launcher_tizen.c to C++
[Tizen] Fix coding style error
[Tizen] Change MouseDown method

Mouse down event in Elementary Plug don't send it's coordinates, it gets
from the last mouse move. We changed the MouseDown method to trigger the
MouseMove method before.

The dropdown in TizenSystemIndicator landscape mode needs the
last coordinates to succeed.
Merge pull request #1403 from ricardotk/indicator

[Tizen] Change MouseDown method
[Runtime] Move ApplicationSystem to XWalkRunner

ApplicationSystem was being created in RuntimeContext, we now create it
in XWalkRunner.

I've also removed RuntimeContext::GetActiveApplication(), and changed
the callers to use XWalkRunner::GetInstance()->app_system() for
now. While it's usually OK for the tests continue to rely on
XWalkRunner, other uses should be removed in future steps.

I'm targetting first moving the construction to the right place, then
making sure dependencies are passed correctly and we avoid reaching the
global.

Note there's a circular dependency between RuntimeContext and
ApplicationSystem. The current plan is to provide a hook for adding
protocol handlers so that ApplicationSystem (or XWalkRunner) can use it
without RuntimeContext needing to be aware. I'm postponing this change
until there's more knowledge of these relationships.