useragent.isGecko is false on Firefox 29

`window.controllers` was renamed to `window.Controllers` in Firefox 29, and will back in Firefox 30.
I changed to check the existence of `Controllers` or `controllers`.
More information is available here: https://developer.mozilla.org/en-US/Firefox/Releases/29/Site_Compatibility