Do some browser detection with Ruby. Includes ActionController integration.