Adding setAppRoot node for link interception
Fixing server side detection.