Use rspec-retry to get past random phantomjs failures (turn off by default)

Closes #5178