Added safari redirect logic.
Merge branch 'safariSupport' into gh-pages