Fix private variable declaration in ResourceQuery, update rakefile

Fixed declaration of type as private before variable declaration in the ResourceQuery class, made some updates to the rakefile based on deprecation notices. The gem now compiles and loads properly, although the example on activerdf.org hung during an http request during the Resource.new command, so there' may be other things that still need fixing