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