Remove Rails from gem

Hi,

Thanks for sharing this, I found it useful in my project. However I thought it would be nice to remove the references to Rails since its nice on its own as a simple single class. I also removed some code, simplified the tests (my local ruby was having some character encoding issues).