A rewrite in Ruby on Rails of Dave Bacon's SciRate