Fix deprecation warnings when running specs

"DEPRECATION: mock is deprecated. Use double instead."
Relax version dependency of the 'browser' gem

Both 1.x and 2.x work fine.
Merge branch 'fix_spec_deprecation_warnings'
Merge branch 'relax_browser_gem_version_dependency'