Added improved browser detection for web applications.

Added improved browser detection for web based apps.