[Runtime] refactor ApplicationService::Install().

ApplicationService::Install() is a bit large. This PR moves the
following logic in a separate function:
1. Extract application package.
2. Create application ID.
3. Load Application per application ID.