Refactoring and modernization

Hi. I did some changes so that the library is usable with modern Ruby.

 * Moved Gemspec to a separate file
 * Moved from 'xml' to 'nokogiri', added it as a dependency.
 * Removal of some superfluous whitespace