Some changes to prepare for unit testing

* Moved lib/wraith.rb to lib/snappy.rb to follow ruby conventions

* Moved code out of rakefile to libs to make it easier to test