Added "WEB" app state.
Extracted web app check in panel_service.cc.
Refactored isWebApp to utils-core. Several code cleanup.