Replaces use of appVersion with userAgent

Detection of user os is now done with navigator.userAgent instead
of navigator.appVersion, because FF reports 5.0(X11) as the app
version (no mention of Linux etc.)