refactoring in HIAppDelegate
switch to apps panel after installing an app
fixed random exception in JS error handling