Added basic command-line UI support (run bundle exec lib/driver.rb to use it).