Detect Fluid.app by user agent instead of URL param.

Fixes a bug where clicking navigation links lost the 'app' parameter.