[SysApps][Tizen] Fixed the incorrect event type and rename the event type

1. remove 'on' before the event type
     such as: onattach -> attach
2. rename event type to keep consistent with spec
     such as: rename 'attach' -> 'storageattach'

spec: http://device-capabilities.sysapps.org/
[Tizen] Move sensor related files to xwalk/tizen

And directly link with tizen sensor library.
[Android] Exclude the gdbserver from release mode of packaging tool.

The gdbserver is used for debugging XWalk, which should not be included
in the release binary of packaging tool. Because it would introduce additional size
of the binary.

So exclude gdbserver binary from release version and leave it for debug version
the same as that for xwalk_core_library.
[Runtime Model] Refactor the Application Storage system.

Rename ApplicationStore to ApplicationStorage, DBStoreSqliteImpl to
ApplicationStorageImpl.

Add the system events setter/getter method in ApplicationData, so that
all application related information can be cached in it.
Merge pull request #1295 from zliang7/dev

[Tizen] Move sensor related files to xwalk/tizen
[SysApps] Add a wrapper to make Promise work with Internal Extensions callbacks

Promises are a really nice fit with the Internal Extensions callbacks, because
they are single shot (you fire it once and forget about it).

We just need to create a wrapper around it with a "protocol" so we can
properly call fulfill() or reject() depending on the message we get from
the native backend.

The Internal Extension callback system will handle keep tracking of the mapping
between callback handlers in the native side and pending Promises in the
JavaScript shim automatically.
[SysApps] Tests for the Promise wrapper in the Binding Object

Test if the wrapper works for Promises that are rejected and fulfilled.
Make orientation work again

Direct changes 90 degree but also flips of 180 degrees works. Both
should be tested by QA.
Merge pull request #1301 from kenchris/orientation

[Tizen] Make orientation work again
Merge pull request #1297 from tmpsantos/promise_wrapper

[SysApps] Integrate Promise with BindingObject
Implements runtime flags for Xwalk.

A new class is added to handle the runtime flags where each feature is
declared as "stable" or "experimental".

This class contains the getters XWalkRuntimeFeatures::isMyFeatureEnabled()
used to know if a feature is on or off from the C++ code.

Note that this class also handles whether a feature has been overriden
by the command line (--enable/--disable-myfeature) by querying the
CommandLine object.
Merge pull request #1285 from darktears/runtime-features2

Implements runtime flags for Xwalk.
Add a generic --enable-xwalk-experimental-features to turn on
all the experimental features.

This will allow our brave users to test the greatest and the latest.
Ideally we need to find a mechanism to trigger this on our Canary
builds (just like Chromium) so the testing can happen early in the
release process.
Merge pull request #1304 from darktears/enable-experimental

Add a generic --enable-xwalk-experimental-features to turn on all the experimental features.
[Tizen] Fix screen rotates regardless "auto rotate" setting

The screen orientation should be forced to portrait-primary when "auto
rotate" is disabled in settings.

BUG=https://crosswalk-project.org/jira/browse/XWALK-625
Mark the JS Dialog API experimental.

We're not very sure if this API should be that way.
If people have interesst using it they can pass the
flag to switch it on.
Merge pull request #1305 from darktears/dialog-off

Mark the JS Dialog API experimental.
Bump version to 3.32.52.0
Merge pull request #1289 from junmin-zhu/gdb

[Android] Exclude the gdbserver from release mode of packaging tool.
[Android] Check webview legacy api for external protocol handling first

Crosswalk provides two ways for embedders to extend protocol handling.
1. The same api as legacy webview api in XWalkContentsClient,
   shouldOverrideUrlLoading().
2. Extends XWalkNavigationHandler.

By default, xwalk doesn't do anything in shouldOverrideUrlLoading, but
handles action uri in XWalkNavigationHandler.
To avoid the case that some embedder override shouldOverrideUrlLoading
in the way conflicts with what xwalk already did in XWalkNavigationHandler,
calling shouldOverrideUrlLoading prior to invoke XWalkNavigationHandler
so that embedders won't get confused.

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