Improve SSL redirection

This is (basically) a port of the rails 4 force_ssl_redirect. This is an
improvement over the stock redirection in that it doesn't rerun url_for
and possibly generate a different route.