Improved Rails integration. Also added Browser::Middleware so you do
redirections based on the user agent.