Missing referer header

Mechanize-capybara `nil`s the `Referer` from request when the request URI starts with 'http(s)://'.

This behaviour may have changed in the latest Mechanize, however we don't have time to upgrade at the moment. Instead we've updated the current patch.

This patch sends the header as expected and follows modern browser behaviour when moving from http to https URLs.