Changed Resource#to_query to #query to match conventions in Model and Collection
Changed Resource#to_query to #query to match conventions in Model and Collection

tillsc/dm-core,ar-dm/ardm-core,datamapper/dm-core,tpitale/dm-core,engineyard/dm-core,alloy/dm-core