start porting functional tests to ruby Test::Unit

this will make it way easier to keep track of what tests are passing or
failing or to run tests individually. the hacky shell tests in the
Rakefile were never going to last. All of the qbrt scripts in T should
be reusable, just loaded up separately in the new ruby test file