FIX Multiple redraw calls on navigation
FIX Dont update preview iframe if hidden

Updating the iframe src when the iframe isnt visible in IE8 causes a
view disconcerting font glitch (and it slows down navigation anyway),
so if the iframe isnt visible, delay setting the src until it is
Merge pull request #2345 from hafriedlander/fix/performance

Couple of performance fixes - eliminate un-necessary redraws and preview updating
FIX flushing on non-dev when Session::cookie_secure is true
Merge pull request #2346 from hafriedlander/fix/flush_when_secure

FIX flush when secure
Merge branch '3.1.0' into 3.1