[Runtime] Fix the bug that one XPK package can install multiple times without any error message

without any error report.

The XPK package should generate the application id using public key in
magic header.

BUG=https://crosswalk-project.org/jira/browse/XWALK-883