Fixes fund migration that contains a data migration part that cannot be run in dry mode.
Fixes request.is_secure issue, part of the problems for redirecting.
Fixes redirects in Safari and IE<10 by adding the hash part to the location header based on a cookie.