Refactored browser factories

Chrome factory now uses the "prefs" webdriver option over "profile" as
the latter's behavior between versions of the driver seemed
inconsistent.

Fixed Firefox factory to use the right profile option.

Change-Id: I2a10b2a9c35f6c04cb7ef3691801c580440db15b