Hooks up rake test

Splits out class so testing won't create a task / can find the file with .rb extension
Renames test file so it's picked up by rake test
Moves Ruby logic to lib
The original version's classname 'Otask' was already being used in the otask.rb file in lib. I wasn't sure if you could combine those two classes or what was going on with that.